diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index ea2071e85..930074160 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.402.1 +speakeasyVersion: 1.405.8 sources: bank-feeds-source: sourceNamespace: bank-feeds-source @@ -35,6 +35,13 @@ sources: tags: - latest - main + sync-for-payables-source: + sourceNamespace: sync-for-payables-source + sourceRevisionDigest: sha256:5bbca92291f77d408d1172141904f939ff18db2c6db88c6f2e88717981ab30e4 + sourceBlobDigest: sha256:b2999b2b9b935bfc647fe90125f27429ceca251baba134fe2e1b28ee05204eb6 + tags: + - latest + - main sync-for-payables-version-1-source: sourceNamespace: sync-for-payables-version-1-source sourceRevisionDigest: sha256:8a265bac8fe5d0a020e2e098459e0d2336d69f6acb919efab1e20e2b0ba4dc79 @@ -75,6 +82,11 @@ targets: sourceNamespace: sync-for-expenses-source sourceRevisionDigest: sha256:29b3738ed98f81087388bc423a26d18d807ebff3e1fe826a8c3d38ec257526ad sourceBlobDigest: sha256:8ff5db8d481a4d93a95e36d83aee7ea08d38383a681da291f47206e4153bb757 + sync-for-payables-library: + source: sync-for-payables-source + sourceNamespace: sync-for-payables-source + sourceRevisionDigest: sha256:5bbca92291f77d408d1172141904f939ff18db2c6db88c6f2e88717981ab30e4 + sourceBlobDigest: sha256:b2999b2b9b935bfc647fe90125f27429ceca251baba134fe2e1b28ee05204eb6 sync-for-payables-version-1-library: source: sync-for-payables-version-1-source sourceNamespace: sync-for-payables-version-1-source @@ -117,6 +129,8 @@ workflow: sync-for-payables-source: inputs: - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-payables-source sync-for-payables-version-1-source: inputs: - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables-v1.yaml diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index f597e77bb..1aa40518f 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -29,6 +29,8 @@ sources: sync-for-payables-source: inputs: - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-payables-source sync-for-payables-version-1-source: inputs: - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables-v1.yaml diff --git a/sync-for-payables/.speakeasy/gen.lock b/sync-for-payables/.speakeasy/gen.lock index 363352fea..ee5418a9b 100644 --- a/sync-for-payables/.speakeasy/gen.lock +++ b/sync-for-payables/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 00cbdd6c-b863-4d25-8a48-4bec7ae20fc1 management: - docChecksum: 0d5e6db903200fe527a4756c50a29993 + docChecksum: a559a506ab0305a8733b93fc4eb7d3e4 docVersion: 3.0.0 - speakeasyVersion: 1.393.0 - generationVersion: 2.413.0 - releaseVersion: 4.0.0 - configChecksum: 371c6562de4e8dd8a7be9bac24ddb675 + speakeasyVersion: 1.405.8 + generationVersion: 2.429.0 + releaseVersion: 5.0.0 + configChecksum: 5cd3d3f8f24ddc59f520d393cf8b76b7 repoURL: https://github.com/codatio/client-sdk-csharp.git repoSubDirectory: sync-for-payables published: true @@ -14,7 +14,7 @@ features: csharp: additionalDependencies: 0.1.0 constsAndDefaults: 0.0.1 - core: 3.9.17 + core: 3.10.3 decimal: 0.1.0 deprecations: 2.81.2 examples: 2.81.3 @@ -70,11 +70,14 @@ generatedFiles: - Codat/Sync/Payables/Models/Components/ClientRateLimitReachedWebhookData.cs - Codat/Sync/Payables/Models/Components/ClientRateLimitResetWebhook.cs - Codat/Sync/Payables/Models/Components/ClientRateLimitResetWebhookData.cs + - Codat/Sync/Payables/Models/Components/ClientRateLimitWebhook.cs + - Codat/Sync/Payables/Models/Components/ClientRateLimitWebhookPayload.cs - Codat/Sync/Payables/Models/Components/CodatFile.cs - Codat/Sync/Payables/Models/Components/Companies.cs - Codat/Sync/Payables/Models/Components/Company.cs - Codat/Sync/Payables/Models/Components/CompanyInformation.cs - Codat/Sync/Payables/Models/Components/CompanyRequestBody.cs + - Codat/Sync/Payables/Models/Components/CompanyTags.cs - Codat/Sync/Payables/Models/Components/Connection.cs - Codat/Sync/Payables/Models/Components/Connections.cs - Codat/Sync/Payables/Models/Components/DataConnectionError.cs @@ -82,11 +85,8 @@ generatedFiles: - Codat/Sync/Payables/Models/Components/ErrorStatus.cs - Codat/Sync/Payables/Models/Components/ErrorValidation.cs - Codat/Sync/Payables/Models/Components/ErrorValidationItem.cs - - Codat/Sync/Payables/Models/Components/GroupReference.cs - Codat/Sync/Payables/Models/Components/HalRef.cs - - Codat/Sync/Payables/Models/Components/Items.cs - Codat/Sync/Payables/Models/Components/Links.cs - - Codat/Sync/Payables/Models/Components/One.cs - Codat/Sync/Payables/Models/Components/Pagination.cs - Codat/Sync/Payables/Models/Components/PaymentMappingOptions.cs - Codat/Sync/Payables/Models/Components/Security.cs @@ -96,6 +96,7 @@ generatedFiles: - Codat/Sync/Payables/Models/Components/SupplierRef.cs - Codat/Sync/Payables/Models/Components/SupplierStatus.cs - Codat/Sync/Payables/Models/Components/Suppliers.cs + - Codat/Sync/Payables/Models/Components/Tags.cs - Codat/Sync/Payables/Models/Components/TaxRateMappingOption.cs - Codat/Sync/Payables/Models/Components/TaxRateStatus.cs - Codat/Sync/Payables/Models/Errors/ErrorMessage.cs @@ -146,7 +147,9 @@ generatedFiles: - Codat/Sync/Payables/Models/Requests/UploadBillAttachmentRequest.cs - Codat/Sync/Payables/Models/Requests/UploadBillAttachmentResponse.cs - Codat/Sync/Payables/Models/Webhooks/ClientRateLimitReachedResponse.cs + - Codat/Sync/Payables/Models/Webhooks/ClientRateLimitReachedResponse1.cs - Codat/Sync/Payables/Models/Webhooks/ClientRateLimitResetResponse.cs + - Codat/Sync/Payables/Models/Webhooks/ClientRateLimitResetResponse1.cs - Codat/Sync/Payables/Suppliers.cs - Codat/Sync/Payables/Utils/AnyDeserializer.cs - Codat/Sync/Payables/Utils/BigIntStrConverter.cs @@ -194,11 +197,14 @@ generatedFiles: - docs/Models/Components/ClientRateLimitReachedWebhookData.md - docs/Models/Components/ClientRateLimitResetWebhook.md - docs/Models/Components/ClientRateLimitResetWebhookData.md + - docs/Models/Components/ClientRateLimitWebhook.md + - docs/Models/Components/ClientRateLimitWebhookPayload.md - docs/Models/Components/CodatFile.md - docs/Models/Components/Companies.md - docs/Models/Components/Company.md - docs/Models/Components/CompanyInformation.md - docs/Models/Components/CompanyRequestBody.md + - docs/Models/Components/CompanyTags.md - docs/Models/Components/Connection.md - docs/Models/Components/Connections.md - docs/Models/Components/DataConnectionError.md @@ -206,11 +212,8 @@ generatedFiles: - docs/Models/Components/ErrorStatus.md - docs/Models/Components/ErrorValidation.md - docs/Models/Components/ErrorValidationItem.md - - docs/Models/Components/GroupReference.md - docs/Models/Components/HalRef.md - - docs/Models/Components/Items.md - docs/Models/Components/Links.md - - docs/Models/Components/One.md - docs/Models/Components/Pagination.md - docs/Models/Components/PaymentMappingOptions.md - docs/Models/Components/Security.md @@ -220,6 +223,7 @@ generatedFiles: - docs/Models/Components/SupplierRef.md - docs/Models/Components/SupplierStatus.md - docs/Models/Components/Suppliers.md + - docs/Models/Components/Tags.md - docs/Models/Components/TaxRateMappingOption.md - docs/Models/Components/TaxRateStatus.md - docs/Models/Errors/ErrorMessage.md @@ -269,7 +273,9 @@ generatedFiles: - docs/Models/Requests/UploadBillAttachmentRequest.md - docs/Models/Requests/UploadBillAttachmentResponse.md - docs/Models/Webhooks/ClientRateLimitReachedResponse.md + - docs/Models/Webhooks/ClientRateLimitReachedResponse1.md - docs/Models/Webhooks/ClientRateLimitResetResponse.md + - docs/Models/Webhooks/ClientRateLimitResetResponse1.md - docs/sdks/bankaccounts/README.md - docs/sdks/billpayments/README.md - docs/sdks/bills/README.md @@ -290,7 +296,7 @@ examples: orderBy: "-modifiedDate" responses: "200": - application/json: {"results": [{"id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "name": "string", "description": "Requested early access to the new financing scheme.", "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", "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": []}], "groups": [{"id": "d7a6c4b4-dc87-45f6-b803-62f466398680"}]}], "pageNumber": 1, "pageSize": 10, "totalResults": 1, "_links": {"self": {"href": "/companies/{id}/data/{dataType}"}, "current": {"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"}}} + application/json: {"results": [{"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": []}]}], "pageNumber": 1, "pageSize": 10, "totalResults": 1, "_links": {"self": {"href": "/companies/{id}/data/{dataType}"}, "current": {"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"}}} "400": {} One company: parameters: @@ -301,7 +307,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", "platform": "", "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": []}], "groups": [{"id": "d7a6c4b4-dc87-45f6-b803-62f466398680"}]}], "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"}}} "400": {} List of Companies: parameters: @@ -312,7 +318,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", "platform": "", "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": []}], "groups": []}, {"id": "096db70b-78de-4ff0-aa98-299cb5fe17a0", "name": "Godata", "description": "A new digital agency with a passion for creating amazing digital experiences", "platform": "", "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": []}], "groups": []}], "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"}}} "400": {} Malformed query: parameters: @@ -341,17 +347,17 @@ examples: create-company: With no description: requestBody: - application/json: {"name": "Technicalium", "description": "Requested early access to the new financing scheme.", "groups": []} + application/json: {"name": "Technicalium", "description": "Requested early access to the new financing scheme."} responses: "200": - application/json: {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Technicalium", "description": "", "platform": "", "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": [], "groups": []} + 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": []} "400": {} With a description: requestBody: - application/json: {"name": "Technicalium", "description": "Technology services, including web and app design and development", "groups": []} + application/json: {"name": "Technicalium", "description": "Technology services, including web and app design and development"} responses: "200": - application/json: {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Technicalium", "description": "Technology services, including web and app design and development", "platform": "", "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": [], "groups": []} + application/json: {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Technicalium", "description": "Technology services, including web and app design and development", "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": []} "400": {} With a group: requestBody: @@ -362,39 +368,45 @@ examples: "400": {} Malformed query: requestBody: - application/json: {"name": "Bank of Dave", "description": "Requested early access to the new financing scheme.", "groups": []} + application/json: {"name": "Bank of Dave", "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.", "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", "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": []}], "groups": [{"id": "d7a6c4b4-dc87-45f6-b803-62f466398680"}]} "400": application/json: {"statusCode": 400, "service": "PublicApi", "error": "Error processing request - not valid.", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "canBeRetried": "Unknown", "detailedErrorCode": 0} + With a tag: + requestBody: + 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": []} update-company: Update name: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: - application/json: {"name": "New Name", "description": "Requested early access to the new financing scheme.", "groups": []} + 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.", "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", "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": []}], "groups": [{"id": "d7a6c4b4-dc87-45f6-b803-62f466398680"}]} + 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"}]}]} "401": {} Update description: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: - application/json: {"name": "Same name", "description": "Additional documents required", "groups": []} + 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.", "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", "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": []}], "groups": [{"id": "d7a6c4b4-dc87-45f6-b803-62f466398680"}]} + 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": []}]} "401": {} Unauthorized: parameters: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" requestBody: - application/json: {"name": "Bank of Dave", "description": "Requested early access to the new financing scheme.", "groups": []} + application/json: {"name": "Bank of Dave", "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.", "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", "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": []}], "groups": [{"id": "d7a6c4b4-dc87-45f6-b803-62f466398680"}]} @@ -415,7 +427,7 @@ examples: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" responses: "200": - application/json: {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "My First Company", "description": "", "platform": "", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "lastSync": "2022-10-23T00:00:00Z", "created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "groups": []} + application/json: {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "My First Company", "description": "", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "lastSync": "2022-10-23T00:00:00Z", "created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": []} "401": {} With groups: parameters: @@ -459,7 +471,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": []}], "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"}}} "400": {} Malformed query: parameters: @@ -689,7 +701,7 @@ examples: continuationToken: "continuationToken=eyJwYWdlIjoyLCJwYWdlU2l6ZSI6MTAwLCJwYWdlQ291bnQiOjExfQ==" responses: "200": - application/json: {"results": [{"id": "18", "reference": "12", "supplierRef": {"id": "4", "supplierName": "BILLy elliot"}, "issueDate": "2019-05-13T00:00:00", "dueDate": "2019-05-13T00:00:00", "currency": "GBP", "currencyRate": "1,", "lineItems": [{"description": "Dance shoes", "unitAmount": 5, "quantity": 1, "taxAmount": 0, "accountRef": {"id": "16"}, "totalAmount": 5, "taxRateRef": {"id": "NON"}}], "status": "Open", "totalAmount": 5, "amountDue": 0, "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}}, {"id": "22", "reference": "12", "supplierRef": {"id": "4", "supplierName": "BILLy elliot"}, "issueDate": "2019-05-13T00:00:00", "dueDate": "2019-05-13T00:00:00", "currency": "GBP", "currencyRate": 1, "lineItems": [{"description": "Dance shoes", "unitAmount": 5, "quantity": 1, "taxAmount": 0, "accountRef": {"id": "16"}, "totalAmount": 5, "taxRateRef": {"id": "NON"}}], "status": "Paid", "totalAmount": 5, "amountDue": 0, "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}}], "pagination": {"continuationToken": "eyJwYWdlIjoyLCJwYWdlU2l6ZSI6MTAwLCJwYWdlQ291bnQiOjExfQ=="}} + application/json: {"results": [{"id": "18", "reference": "12", "supplierRef": {"id": "4", "supplierName": "BILLy elliot"}, "issueDate": "2019-05-13T00:00:00", "dueDate": "2019-05-13T00:00:00", "currency": "GBP", "currencyRate": "1,", "lineItems": [{"description": "Dance shoes", "unitAmount": 5, "quantity": 1, "taxAmount": 0, "accountRef": {"id": "16"}, "totalAmount": 5, "taxRateRef": {"id": "NON"}}], "status": "Open", "totalAmount": 5, "amountDue": 0, "sourceModifiedDate": "2022-05-26T10:34:10Z"}, {"id": "22", "reference": "12", "supplierRef": {"id": "4", "supplierName": "BILLy elliot"}, "issueDate": "2019-05-13T00:00:00", "dueDate": "2019-05-13T00:00:00", "currency": "GBP", "currencyRate": 1, "lineItems": [{"description": "Dance shoes", "unitAmount": 5, "quantity": 1, "taxAmount": 0, "accountRef": {"id": "16"}, "totalAmount": 5, "taxRateRef": {"id": "NON"}}], "status": "Paid", "totalAmount": 5, "amountDue": 0, "sourceModifiedDate": "2022-05-26T10:34:10Z"}], "pagination": {"continuationToken": "eyJwYWdlIjoyLCJwYWdlU2l6ZSI6MTAwLCJwYWdlQ291bnQiOjExfQ=="}} "400": {} Malformed query: parameters: @@ -726,7 +738,7 @@ examples: application/json: {"reference": "bill_b8qmmj4ksf1suax", "supplierRef": {"id": "1262c350-fe0f-40ec-aeff-41c95b4a45af", "supplierName": "DIISR - Small Business Services"}, "issueDate": "2023-04-23T00:00:00", "dueDate": "2023-04-23T00:00:00", "currency": "GBP", "currencyRate": 1, "lineItems": [{"description": "Half day training - Microsoft Office", "unitAmount": 1800, "quantity": 1, "taxAmount": 360, "accountRef": {"id": "46f9461e-788b-4906-8b74-d1ea17f6dc10"}, "totalAmount": 2160, "taxRateRef": {"id": "INPUT2"}}, {"description": "Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month.", "unitAmount": 4000, "quantity": 1, "taxAmount": 800, "accountRef": {"id": "f96c9458-d724-47bf-8f74-a9d5726465ce"}, "totalAmount": 4800, "taxRateRef": {"id": "INPUT2"}}, {"description": "Stationery charges", "unitAmount": 32, "quantity": 8, "taxAmount": 51.2, "accountRef": {"id": "cba6527d-f102-4538-b421-e483233e9d5a"}, "totalAmount": 307.2, "taxRateRef": {"id": "INPUT2"}}], "status": "Open", "totalAmount": 7267.2, "amountDue": 7267.2} responses: "200": - application/json: {"supplierRef": {"id": ""}, "issueDate": "2022-10-23T00:00:00Z", "dueDate": "2022-10-23T00:00:00Z", "currency": "GBP", "status": "Open", "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}} + application/json: {"supplierRef": {"id": ""}, "issueDate": "2022-10-23T00:00:00Z", "dueDate": "2022-10-23T00:00:00Z", "currency": "GBP", "status": "Open", "sourceModifiedDate": "{\"sourceModifiedDate\":\"2022-10-23T00:00:00Z\"}"} "400": {} Created bill: parameters: @@ -738,7 +750,7 @@ examples: application/json: {"supplierRef": {"id": ""}, "issueDate": "2022-10-23T00:00:00Z", "dueDate": "2022-10-23T00:00:00Z", "currency": "USD", "status": "Open"} responses: "200": - application/json: {"id": "bill-1029932", "reference": "bill_b8qmmj4ksf1suax", "supplierRef": {"id": "1262c350-fe0f-40ec-aeff-41c95b4a45af", "supplierName": "DIISR - Small Business Services"}, "issueDate": "2023-04-23T00:00:00", "dueDate": "2023-04-23T00:00:00", "currency": "GBP", "lineItems": [{"description": "Half day training - Microsoft Office", "unitAmount": 1800, "quantity": 1, "taxAmount": 360, "accountRef": {"id": "46f9461e-788b-4906-8b74-d1ea17f6dc10"}, "totalAmount": 2160, "taxRateRef": {"id": "INPUT2"}}, {"description": "Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month.", "unitAmount": 4000, "quantity": 1, "taxAmount": 800, "accountRef": {"id": "f96c9458-d724-47bf-8f74-a9d5726465ce"}, "totalAmount": 4800, "taxRateRef": {"id": "INPUT2"}}, {"description": "Stationery charges", "unitAmount": 32, "quantity": 8, "taxAmount": 51.2, "accountRef": {"id": "cba6527d-f102-4538-b421-e483233e9d5a"}, "totalAmount": 307.2, "taxRateRef": {"id": "INPUT2"}}], "status": "Open", "totalAmount": 7267.2, "amountDue": 7267.2, "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}} + application/json: {"id": "bill-1029932", "reference": "bill_b8qmmj4ksf1suax", "supplierRef": {"id": "1262c350-fe0f-40ec-aeff-41c95b4a45af", "supplierName": "DIISR - Small Business Services"}, "issueDate": "2023-04-23T00:00:00", "dueDate": "2023-04-23T00:00:00", "currency": "GBP", "lineItems": [{"description": "Half day training - Microsoft Office", "unitAmount": 1800, "quantity": 1, "taxAmount": 360, "accountRef": {"id": "46f9461e-788b-4906-8b74-d1ea17f6dc10"}, "totalAmount": 2160, "taxRateRef": {"id": "INPUT2"}}, {"description": "Desktop/network support via email & phone.Per month fixed fee for minimum 20 hours/month.", "unitAmount": 4000, "quantity": 1, "taxAmount": 800, "accountRef": {"id": "f96c9458-d724-47bf-8f74-a9d5726465ce"}, "totalAmount": 4800, "taxRateRef": {"id": "INPUT2"}}, {"description": "Stationery charges", "unitAmount": 32, "quantity": 8, "taxAmount": 51.2, "accountRef": {"id": "cba6527d-f102-4538-b421-e483233e9d5a"}, "totalAmount": 307.2, "taxRateRef": {"id": "INPUT2"}}], "status": "Open", "totalAmount": 7267.2, "amountDue": 7267.2, "sourceModifiedDate": "{\"sourceModifiedDate\":\"2022-10-23T00:00:00Z\"}"} "400": {} Malformed query: parameters: @@ -779,7 +791,7 @@ examples: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - billId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" + billId: "13d946f0-c5d5-42bc-b092-97ece17923ab" responses: "200": application/json: {"dateCreated": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z"} @@ -841,7 +853,7 @@ examples: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - billId: "7110701885" + billId: "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2" header: {} requestBody: application/json: {"amount": 22, "date": "2022-10-23T00:00:00.000Z", "reference": "Bill Payment against bill c13e37b6 dfaa-4894-b3be-9fe97bda9f44", "accountRef": {"id": "7bda9f44sr56"}, "currencyRate": 1} @@ -854,7 +866,7 @@ examples: path: companyId: "8a210b68-6988-11ed-a1eb-0242ac120002" connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171" - billId: "EILBDVJVNUAGVKRQ" + 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": ""}} @@ -887,7 +899,7 @@ examples: query: "sourceModifiedDate>2023-12-15T00:00:00.000Z" responses: "200": - application/json: {"results": [{"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "supplierName": "Kelly's Industrial Supplies", "contactName": "Kelly Ipsum", "emailAddress": "sales@kellysupplies.com", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}}]} + application/json: {"results": [{"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "supplierName": "Kelly's Industrial Supplies", "contactName": "Kelly Ipsum", "emailAddress": "sales@kellysupplies.com", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": "{\"sourceModifiedDate\":\"2022-10-23T00:00:00Z\"}"}]} "400": {} Status (active): parameters: @@ -899,7 +911,7 @@ examples: query: "status=Active" responses: "200": - application/json: {"results": [{"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "supplierName": "Kelly's Industrial Supplies", "contactName": "Kelly Ipsum", "emailAddress": "sales@kellysupplies.com", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}}]} + application/json: {"results": [{"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "supplierName": "Kelly's Industrial Supplies", "contactName": "Kelly Ipsum", "emailAddress": "sales@kellysupplies.com", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": "{\"sourceModifiedDate\":\"2022-10-23T00:00:00Z\"}"}]} "400": {} Status (archived): parameters: @@ -911,7 +923,7 @@ examples: query: "status=Archived" responses: "200": - application/json: {"results": [{"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "supplierName": "Kelly's Industrial Supplies", "contactName": "Kelly Ipsum", "emailAddress": "sales@kellysupplies.com", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}}]} + application/json: {"results": [{"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "supplierName": "Kelly's Industrial Supplies", "contactName": "Kelly Ipsum", "emailAddress": "sales@kellysupplies.com", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": "{\"sourceModifiedDate\":\"2022-10-23T00:00:00Z\"}"}]} "400": {} Status (active) & source modified date: parameters: @@ -923,7 +935,7 @@ examples: query: "sourceModifiedDate>2023-12-15T00:00:00.000Z&&status=Active" responses: "200": - application/json: {"results": [{"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "supplierName": "Kelly's Industrial Supplies", "contactName": "Kelly Ipsum", "emailAddress": "sales@kellysupplies.com", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}}]} + application/json: {"results": [{"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "supplierName": "Kelly's Industrial Supplies", "contactName": "Kelly Ipsum", "emailAddress": "sales@kellysupplies.com", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": "{\"sourceModifiedDate\":\"2022-10-23T00:00:00Z\"}"}]} "400": {} Status (archived) & source modified date: parameters: @@ -935,7 +947,7 @@ examples: query: "sourceModifiedDate>2023-12-15T00:00:00.000Z&&status=Archived" responses: "200": - application/json: {"results": [{"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "supplierName": "Kelly's Industrial Supplies", "contactName": "Kelly Ipsum", "emailAddress": "sales@kellysupplies.com", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}}]} + application/json: {"results": [{"id": "C520FFD4-F6F6-4FC2-A6D2-5D7088B2B14F", "supplierName": "Kelly's Industrial Supplies", "contactName": "Kelly Ipsum", "emailAddress": "sales@kellysupplies.com", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": "{\"sourceModifiedDate\":\"2022-10-23T00:00:00Z\"}"}]} "400": {} Suppliers: parameters: @@ -946,7 +958,7 @@ examples: continuationToken: "continuationToken=eyJwYWdlIjoyLCJwYWdlU2l6ZSI6MTAwLCJwYWdlQ291bnQiOjExfQ==" responses: "200": - application/json: {"results": [{"id": "c523e12f-8b74-4d3a-bbd8-32d7a2f598b4", "supplierName": "City Limousines", "contactName": "Martin Dale", "emailAddress": "martyd@citylim.co", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "balance": 100, "defaultCurrency": "GBP", "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}}, {"id": "41", "supplierName": "AI Support", "contactName": "AI Support", "phone": "+44 25691 154789", "addresses": [{"type": "Billing", "line1": "test", "region": "string", "country": "Djibouti"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}}], "pagination": {"continuationToken": "eyJwYWdlIjoyLCJwYWdlU2l6ZSI6MTAwLCJwYWdlQ291bnQiOjExfQ=="}} + application/json: {"results": [{"id": "c523e12f-8b74-4d3a-bbd8-32d7a2f598b4", "supplierName": "City Limousines", "contactName": "Martin Dale", "emailAddress": "martyd@citylim.co", "phone": "07999 999999", "addresses": [{"type": "Billing", "line1": "Unit 51", "line2": "Bakersfield Industrial Estate", "city": "Bakersfield", "region": "California", "country": "USA"}], "status": "Active", "balance": 100, "defaultCurrency": "GBP", "sourceModifiedDate": "2022-10-23T00:00:00Z"}, {"id": "41", "supplierName": "AI Support", "contactName": "AI Support", "phone": "01224 658 999", "addresses": [{"type": "Billing", "line1": "test", "region": "string", "country": "Djibouti"}], "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": "2022-12-07T10:48:18Z"}], "pagination": {"continuationToken": "eyJwYWdlIjoyLCJwYWdlU2l6ZSI6MTAwLCJwYWdlQ291bnQiOjExfQ=="}} "400": {} Malformed query: parameters: @@ -983,7 +995,7 @@ examples: application/json: {"supplierName": "Greggs", "contactName": "Greg Greggs", "emailAddress": "greg@greggs.com", "phone": "+44 (0)1223 322410", "addresses": [{"type": "Billing", "line1": "Flat 1", "line2": "2 Dennis Avenue", "city": "London", "region": "Camden", "country": "GBR", "postalCode": "EC1N 7TE"}], "status": "Active", "defaultCurrency": "GBP"} responses: "200": - application/json: {"id": "sup-10933920", "supplierName": "Greggs", "contactName": "Greg Greggs", "emailAddress": "greg@greggs.com", "phone": "+44 (0)1223 322410", "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": {"sourceModifiedDate": "2022-10-23T00:00:00Z"}} + application/json: {"id": "sup-10933920", "supplierName": "Greggs", "contactName": "Greg Greggs", "emailAddress": "greg@greggs.com", "phone": "+44 (0)1223 322410", "status": "Active", "defaultCurrency": "GBP", "sourceModifiedDate": "{\"sourceModifiedDate\":\"2022-10-23T00:00:00Z\"}"} "400": {} Malformed query: parameters: diff --git a/sync-for-payables/.speakeasy/gen.yaml b/sync-for-payables/.speakeasy/gen.yaml index 8370ac6e5..4f2c12938 100644 --- a/sync-for-payables/.speakeasy/gen.yaml +++ b/sync-for-payables/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false csharp: - version: 4.0.0 + version: 5.0.0 additionalDependencies: [] author: Codat clientServerStatusCodesAsErrors: true @@ -35,4 +35,5 @@ csharp: outputModelSuffix: output packageName: Codat.Sync.Payables packageTags: "" - responseFormat: envelope \ No newline at end of file + responseFormat: envelope + sourceDirectory: "" diff --git a/sync-for-payables/Codat/Sync/Payables/BankAccounts.cs b/sync-for-payables/Codat/Sync/Payables/BankAccounts.cs index c77a603e4..83773882e 100644 --- a/sync-for-payables/Codat/Sync/Payables/BankAccounts.cs +++ b/sync-for-payables/Codat/Sync/Payables/BankAccounts.cs @@ -47,10 +47,10 @@ public class BankAccounts: IBankAccounts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "4.0.0"; - private const string _sdkGenVersion = "2.413.0"; + private const string _sdkVersion = "5.0.0"; + private const string _sdkGenVersion = "2.429.0"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -168,10 +168,8 @@ public async Task CreateAsync(CreateBankAccountReques response.BankAccount = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -180,19 +178,15 @@ public async Task CreateAsync(CreateBankAccountReques var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/BillPayments.cs b/sync-for-payables/Codat/Sync/Payables/BillPayments.cs index c10b524a7..b13cf50aa 100644 --- a/sync-for-payables/Codat/Sync/Payables/BillPayments.cs +++ b/sync-for-payables/Codat/Sync/Payables/BillPayments.cs @@ -60,10 +60,10 @@ public class BillPayments: IBillPayments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "4.0.0"; - private const string _sdkGenVersion = "2.413.0"; + private const string _sdkVersion = "5.0.0"; + private const string _sdkGenVersion = "2.429.0"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -174,10 +174,8 @@ public async Task GetPaymentOptionsAsync(GetM response.PaymentMappingOptions = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -186,19 +184,15 @@ public async Task GetPaymentOptionsAsync(GetM var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(CreateBillPaymentRequest request, RetryConfig? retryConfig = null) @@ -306,10 +300,8 @@ public async Task CreateAsync(CreateBillPaymentReques response.BillPayment = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode)) { @@ -318,19 +310,15 @@ public async Task CreateAsync(CreateBillPaymentReques var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Bills.cs b/sync-for-payables/Codat/Sync/Payables/Bills.cs index b6e68eb93..210abe1da 100644 --- a/sync-for-payables/Codat/Sync/Payables/Bills.cs +++ b/sync-for-payables/Codat/Sync/Payables/Bills.cs @@ -109,10 +109,10 @@ public class Bills: IBills { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "4.0.0"; - private const string _sdkGenVersion = "2.413.0"; + private const string _sdkVersion = "5.0.0"; + private const string _sdkGenVersion = "2.429.0"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -223,10 +223,8 @@ public async Task GetBillOptionsAsync(GetMapping response.BillMappingOptions = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -235,19 +233,15 @@ public async Task GetBillOptionsAsync(GetMapping var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task ListAsync(ListBillsRequest request, RetryConfig? retryConfig = null) @@ -348,10 +342,8 @@ public async Task ListAsync(ListBillsRequest request, RetryCo response.Bills = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode)) { @@ -360,19 +352,15 @@ public async Task ListAsync(ListBillsRequest request, RetryCo var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(CreateBillRequest request, RetryConfig? retryConfig = null) @@ -480,10 +468,8 @@ public async Task CreateAsync(CreateBillRequest request, Ret response.Bill = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode)) { @@ -492,19 +478,15 @@ public async Task CreateAsync(CreateBillRequest request, Ret var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task UploadAttachmentAsync(UploadBillAttachmentRequest request, RetryConfig? retryConfig = null) @@ -613,19 +595,15 @@ public async Task UploadAttachmentAsync(UploadBill var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task ListAttachmentsAsync(ListBillAttachmentsRequest request, RetryConfig? retryConfig = null) @@ -726,10 +704,8 @@ public async Task ListAttachmentsAsync(ListBillAtta response.Attachment = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode)) { @@ -738,19 +714,15 @@ public async Task ListAttachmentsAsync(ListBillAtta var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task DownloadAttachmentAsync(DownloadBillAttachmentRequest request, RetryConfig? retryConfig = null) @@ -850,10 +822,8 @@ public async Task DownloadAttachmentAsync(Downlo response.Data = await httpResponse.Content.ReadAsByteArrayAsync(); return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -862,19 +832,15 @@ public async Task DownloadAttachmentAsync(Downlo var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Codat.Sync.Payables.csproj b/sync-for-payables/Codat/Sync/Payables/Codat.Sync.Payables.csproj index 86e0683f0..5078764f3 100644 --- a/sync-for-payables/Codat/Sync/Payables/Codat.Sync.Payables.csproj +++ b/sync-for-payables/Codat/Sync/Payables/Codat.Sync.Payables.csproj @@ -3,7 +3,7 @@ true Codat.Sync.Payables - 4.0.0 + 5.0.0 net8.0 Codat Copyright (c) Codat 2024 diff --git a/sync-for-payables/Codat/Sync/Payables/CodatSyncPayables.cs b/sync-for-payables/Codat/Sync/Payables/CodatSyncPayables.cs index bbd64e657..53b615e72 100644 --- a/sync-for-payables/Codat/Sync/Payables/CodatSyncPayables.cs +++ b/sync-for-payables/Codat/Sync/Payables/CodatSyncPayables.cs @@ -149,10 +149,10 @@ public class CodatSyncPayables: ICodatSyncPayables public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "4.0.0"; - private const string _sdkGenVersion = "2.413.0"; + private const string _sdkVersion = "5.0.0"; + private const string _sdkGenVersion = "2.429.0"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables"; private string _serverUrl = ""; private int _serverIndex = 0; private ISpeakeasyHttpClient _client; diff --git a/sync-for-payables/Codat/Sync/Payables/Companies.cs b/sync-for-payables/Codat/Sync/Payables/Companies.cs index a4bf2db2d..db7068bcb 100644 --- a/sync-for-payables/Codat/Sync/Payables/Companies.cs +++ b/sync-for-payables/Codat/Sync/Payables/Companies.cs @@ -38,7 +38,7 @@ public interface ICompanies /// Each company can have multiple connections to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. /// /// - Task ListAsync(ListCompaniesRequest request, RetryConfig? retryConfig = null); + Task ListAsync(ListCompaniesRequest? request = null, RetryConfig? retryConfig = null); /// /// Create company @@ -59,7 +59,6 @@ public interface ICompanies /// /// /// Use the *Update company* endpoint to update both the name and description of the company.
- /// If you use groups to manage a set of companies, use the Add company or Remove company endpoints to add or remove a company from a group.
///
/// A company represents a business sharing access to their data.
/// Each company can have multiple connections to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. @@ -101,10 +100,10 @@ public class Companies: ICompanies { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "4.0.0"; - private const string _sdkGenVersion = "2.413.0"; + private const string _sdkVersion = "5.0.0"; + private const string _sdkGenVersion = "2.429.0"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -117,7 +116,7 @@ public Companies(ISpeakeasyHttpClient client, Func ListAsync(ListCompaniesRequest request, RetryConfig? retryConfig = null) + public async Task ListAsync(ListCompaniesRequest? request = null, RetryConfig? retryConfig = null) { string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); var urlString = URLBuilder.Build(baseUrl, "/companies", request); @@ -205,7 +204,7 @@ public async Task ListAsync(ListCompaniesRequest request, { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); var response = new ListCompaniesResponse() { StatusCode = responseStatusCode, @@ -215,31 +214,25 @@ public async Task ListAsync(ListCompaniesRequest request, response.Companies = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(CompanyRequestBody? request = null, RetryConfig? retryConfig = null) @@ -347,10 +340,8 @@ public async Task CreateAsync(CompanyRequestBody? request response.Company = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 429, 500, 503}.Contains(responseStatusCode)) { @@ -359,19 +350,15 @@ public async Task CreateAsync(CompanyRequestBody? request var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task UpdateAsync(UpdateCompanyRequest request, RetryConfig? retryConfig = null) @@ -478,10 +465,8 @@ public async Task UpdateAsync(UpdateCompanyRequest reques response.Company = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -490,19 +475,15 @@ public async Task UpdateAsync(UpdateCompanyRequest reques var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task DeleteAsync(DeleteCompanyRequest request, RetryConfig? retryConfig = null) @@ -605,19 +586,15 @@ public async Task DeleteAsync(DeleteCompanyRequest reques var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(GetCompanyRequest request, RetryConfig? retryConfig = null) @@ -718,10 +695,8 @@ public async Task GetAsync(GetCompanyRequest request, RetryC response.Company = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -730,19 +705,15 @@ public async Task GetAsync(GetCompanyRequest request, RetryC var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/CompanyInformation.cs b/sync-for-payables/Codat/Sync/Payables/CompanyInformation.cs index 4b4fd44b1..02b081599 100644 --- a/sync-for-payables/Codat/Sync/Payables/CompanyInformation.cs +++ b/sync-for-payables/Codat/Sync/Payables/CompanyInformation.cs @@ -47,10 +47,10 @@ public class CompanyInformation: ICompanyInformation { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "4.0.0"; - private const string _sdkGenVersion = "2.413.0"; + private const string _sdkVersion = "5.0.0"; + private const string _sdkGenVersion = "2.429.0"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -161,10 +161,8 @@ public async Task GetAsync(GetCompanyInformationR response.CompanyInformation = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -173,19 +171,15 @@ public async Task GetAsync(GetCompanyInformationR var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Connections.cs b/sync-for-payables/Codat/Sync/Payables/Connections.cs index 71ed3a877..6df041b04 100644 --- a/sync-for-payables/Codat/Sync/Payables/Connections.cs +++ b/sync-for-payables/Codat/Sync/Payables/Connections.cs @@ -84,10 +84,10 @@ public class Connections: IConnections { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "4.0.0"; - private const string _sdkGenVersion = "2.413.0"; + private const string _sdkVersion = "5.0.0"; + private const string _sdkGenVersion = "2.429.0"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -198,10 +198,8 @@ public async Task ListAsync(ListConnectionsRequest requ response.Connections = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -210,19 +208,15 @@ public async Task ListAsync(ListConnectionsRequest requ var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(CreateConnectionRequest request, RetryConfig? retryConfig = null) @@ -329,10 +323,8 @@ public async Task CreateAsync(CreateConnectionRequest response.Connection = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -341,19 +333,15 @@ public async Task CreateAsync(CreateConnectionRequest var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(GetConnectionRequest request, RetryConfig? retryConfig = null) @@ -454,10 +442,8 @@ public async Task GetAsync(GetConnectionRequest request, response.Connection = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -466,19 +452,15 @@ public async Task GetAsync(GetConnectionRequest request, var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task DeleteAsync(DeleteConnectionRequest request, RetryConfig? retryConfig = null) @@ -581,19 +563,15 @@ public async Task DeleteAsync(DeleteConnectionRequest var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task UnlinkAsync(UnlinkConnectionRequest request, RetryConfig? retryConfig = null) @@ -700,10 +678,8 @@ public async Task UnlinkAsync(UnlinkConnectionRequest response.Connection = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -712,19 +688,15 @@ public async Task UnlinkAsync(UnlinkConnectionRequest var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Components/Bill.cs b/sync-for-payables/Codat/Sync/Payables/Models/Components/Bill.cs index fbdcb5b09..3e578cc7d 100644 --- a/sync-for-payables/Codat/Sync/Payables/Models/Components/Bill.cs +++ b/sync-for-payables/Codat/Sync/Payables/Models/Components/Bill.cs @@ -124,6 +124,6 @@ public class Bill public decimal? AmountDue { get; set; } = null; [JsonProperty("sourceModifiedDate")] - public One? SourceModifiedDate { get; set; } = null; + public string? SourceModifiedDate { get; set; } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Components/ClientRateLimitWebhook.cs b/sync-for-payables/Codat/Sync/Payables/Models/Components/ClientRateLimitWebhook.cs new file mode 100644 index 000000000..dfca24cb1 --- /dev/null +++ b/sync-for-payables/Codat/Sync/Payables/Models/Components/ClientRateLimitWebhook.cs @@ -0,0 +1,61 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Codat.Sync.Payables.Models.Components +{ + using Codat.Sync.Payables.Models.Components; + using Codat.Sync.Payables.Utils; + using Newtonsoft.Json; + + public class ClientRateLimitWebhook + { + + /// + /// Unique identifier of the event. + /// + [JsonProperty("id")] + public string? Id { get; set; } + + /// + /// The type of event. + /// + [JsonProperty("eventType")] + public string? EventType { get; set; } + + /// + /// In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. 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. + ///
+ ///
+ [JsonProperty("generatedDate")] + public string? GeneratedDate { get; set; } + + [JsonProperty("payload")] + public ClientRateLimitWebhookPayload? Payload { get; set; } + } +} \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Components/ClientRateLimitWebhookPayload.cs b/sync-for-payables/Codat/Sync/Payables/Models/Components/ClientRateLimitWebhookPayload.cs new file mode 100644 index 000000000..3eb219f88 --- /dev/null +++ b/sync-for-payables/Codat/Sync/Payables/Models/Components/ClientRateLimitWebhookPayload.cs @@ -0,0 +1,57 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Codat.Sync.Payables.Models.Components +{ + using Codat.Sync.Payables.Utils; + using Newtonsoft.Json; + + public class ClientRateLimitWebhookPayload + { + + /// + /// The number of available requests per day. + /// + [JsonProperty("dailyQuota")] + public long? DailyQuota { get; set; } + + /// + /// Total number of requests remaining for your client. + /// + [JsonProperty("quotaRemaining")] + public long? QuotaRemaining { get; set; } + + /// + /// In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. 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. + ///
+ ///
+ [JsonProperty("expiryDate")] + public string? ExpiryDate { get; set; } + } +} \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Components/Company.cs b/sync-for-payables/Codat/Sync/Payables/Models/Components/Company.cs index b408ad46a..d54ba86a5 100644 --- a/sync-for-payables/Codat/Sync/Payables/Models/Components/Company.cs +++ b/sync-for-payables/Codat/Sync/Payables/Models/Components/Company.cs @@ -13,7 +13,6 @@ namespace Codat.Sync.Payables.Models.Components using Codat.Sync.Payables.Utils; using Newtonsoft.Json; using System.Collections.Generic; - using System; /// /// In Codat, a company represents a business sharing access to their data. Each company can have multiple connections to different data sources such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts and a connection to Zettle for POS data.
@@ -46,13 +45,6 @@ public class Company [JsonProperty("description")] public string? Description { get; set; } - /// - /// `platformKeys` name used when creating the company. - /// - [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] - [JsonProperty("platform")] - public string? Platform { get; set; } - /// /// The `redirect` Link URL enabling the customer to start their auth flow journey for the company. /// @@ -117,15 +109,21 @@ public class Company /// Name of user that created the company in Codat. ///
[JsonProperty("createdByUserName")] - public string? CreatedByUserName { get; set; } + public string? CreatedByUserName { get; set; } = null; - [JsonProperty("dataConnections")] - public List? DataConnections { get; set; } + /// + /// An array of products that are currently enabled for the company. + /// + [JsonProperty("products")] + public List? Products { get; set; } /// - /// An array of groups the company has been assigned to. + /// A collection of user-defined key-value pairs that store custom metadata against the company. /// - [JsonProperty("groups")] - public List? Groups { get; set; } + [JsonProperty("tags")] + public CompanyTags? Tags { get; set; } + + [JsonProperty("dataConnections")] + public List? DataConnections { get; set; } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Components/CompanyRequestBody.cs b/sync-for-payables/Codat/Sync/Payables/Models/Components/CompanyRequestBody.cs index 96f0c8e16..46ba19380 100644 --- a/sync-for-payables/Codat/Sync/Payables/Models/Components/CompanyRequestBody.cs +++ b/sync-for-payables/Codat/Sync/Payables/Models/Components/CompanyRequestBody.cs @@ -12,7 +12,6 @@ namespace Codat.Sync.Payables.Models.Components using Codat.Sync.Payables.Models.Components; using Codat.Sync.Payables.Utils; using Newtonsoft.Json; - using System.Collections.Generic; public class CompanyRequestBody { @@ -30,9 +29,9 @@ public class CompanyRequestBody public string? Description { get; set; } /// - /// Reference to the groups that the company is assigned to. + /// A collection of user-defined key-value pairs that store custom metadata against the company. /// - [JsonProperty("groups")] - public List? Groups { get; set; } + [JsonProperty("tags")] + public Tags? Tags { get; set; } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Components/Items.cs b/sync-for-payables/Codat/Sync/Payables/Models/Components/CompanyTags.cs similarity index 70% rename from sync-for-payables/Codat/Sync/Payables/Models/Components/Items.cs rename to sync-for-payables/Codat/Sync/Payables/Models/Components/CompanyTags.cs index 3e4ce2d5c..2ef1d50f8 100644 --- a/sync-for-payables/Codat/Sync/Payables/Models/Components/Items.cs +++ b/sync-for-payables/Codat/Sync/Payables/Models/Components/CompanyTags.cs @@ -10,15 +10,11 @@ namespace Codat.Sync.Payables.Models.Components { using Codat.Sync.Payables.Utils; - using Newtonsoft.Json; - public class Items + /// + /// A collection of user-defined key-value pairs that store custom metadata against the company. + /// + public class CompanyTags { - - /// - /// Unique identifier for the group. - /// - [JsonProperty("id")] - public string? Id { get; set; } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Components/Connection.cs b/sync-for-payables/Codat/Sync/Payables/Models/Components/Connection.cs index 61299b9b8..2a5182004 100644 --- a/sync-for-payables/Codat/Sync/Payables/Models/Components/Connection.cs +++ b/sync-for-payables/Codat/Sync/Payables/Models/Components/Connection.cs @@ -135,12 +135,9 @@ public class Connection public string Created { get; set; } = default!; [JsonProperty("dataConnectionErrors")] - public List? DataConnectionErrors { get; set; } + public List? DataConnectionErrors { get; set; } = null; [JsonProperty("connectionInfo")] - public Dictionary? ConnectionInfo { get; set; } - - [JsonProperty("additionalProperties")] - public object? AdditionalProperties { get; set; } + public Dictionary? ConnectionInfo { get; set; } = null; } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Components/GroupReference.cs b/sync-for-payables/Codat/Sync/Payables/Models/Components/GroupReference.cs deleted file mode 100644 index b06eaec7c..000000000 --- a/sync-for-payables/Codat/Sync/Payables/Models/Components/GroupReference.cs +++ /dev/null @@ -1,24 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace Codat.Sync.Payables.Models.Components -{ - using Codat.Sync.Payables.Utils; - using Newtonsoft.Json; - - public class GroupReference - { - - /// - /// Unique identifier for the group. - /// - [JsonProperty("id")] - public string? Id { get; set; } - } -} \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Components/Supplier.cs b/sync-for-payables/Codat/Sync/Payables/Models/Components/Supplier.cs index d537348b8..0b4e0fec6 100644 --- a/sync-for-payables/Codat/Sync/Payables/Models/Components/Supplier.cs +++ b/sync-for-payables/Codat/Sync/Payables/Models/Components/Supplier.cs @@ -81,6 +81,6 @@ public class Supplier public string? DefaultCurrency { get; set; } = null; [JsonProperty("sourceModifiedDate")] - public One? SourceModifiedDate { get; set; } = null; + public string? SourceModifiedDate { get; set; } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Components/One.cs b/sync-for-payables/Codat/Sync/Payables/Models/Components/Tags.cs similarity index 76% rename from sync-for-payables/Codat/Sync/Payables/Models/Components/One.cs rename to sync-for-payables/Codat/Sync/Payables/Models/Components/Tags.cs index f3eba6941..61f2872f6 100644 --- a/sync-for-payables/Codat/Sync/Payables/Models/Components/One.cs +++ b/sync-for-payables/Codat/Sync/Payables/Models/Components/Tags.cs @@ -10,12 +10,11 @@ namespace Codat.Sync.Payables.Models.Components { using Codat.Sync.Payables.Utils; - using Newtonsoft.Json; - public class One + /// + /// A collection of user-defined key-value pairs that store custom metadata against the company. + /// + public class Tags { - - [JsonProperty("sourceModifiedDate")] - public string? SourceModifiedDate { get; set; } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Errors/ErrorMessage.cs b/sync-for-payables/Codat/Sync/Payables/Models/Errors/ErrorMessage.cs index 2c0e45a06..b77bcb1ba 100644 --- a/sync-for-payables/Codat/Sync/Payables/Models/Errors/ErrorMessage.cs +++ b/sync-for-payables/Codat/Sync/Payables/Models/Errors/ErrorMessage.cs @@ -15,7 +15,7 @@ namespace Codat.Sync.Payables.Models.Errors using System; /// - /// The request made is not valid. + /// Your `query` parameter was not correctly formed /// public class ErrorMessage : Exception { diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Webhooks/ClientRateLimitReachedResponse1.cs b/sync-for-payables/Codat/Sync/Payables/Models/Webhooks/ClientRateLimitReachedResponse1.cs new file mode 100644 index 000000000..3b6a9007f --- /dev/null +++ b/sync-for-payables/Codat/Sync/Payables/Models/Webhooks/ClientRateLimitReachedResponse1.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Codat.Sync.Payables.Models.Webhooks +{ + using Codat.Sync.Payables.Utils; + using System.Net.Http; + using System; + + public class ClientRateLimitReachedResponse1 + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage RawResponse { get; set; } = default!; + } +} \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Models/Webhooks/ClientRateLimitResetResponse1.cs b/sync-for-payables/Codat/Sync/Payables/Models/Webhooks/ClientRateLimitResetResponse1.cs new file mode 100644 index 000000000..b40ac9308 --- /dev/null +++ b/sync-for-payables/Codat/Sync/Payables/Models/Webhooks/ClientRateLimitResetResponse1.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Codat.Sync.Payables.Models.Webhooks +{ + using Codat.Sync.Payables.Utils; + using System.Net.Http; + using System; + + public class ClientRateLimitResetResponse1 + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage RawResponse { get; set; } = default!; + } +} \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Suppliers.cs b/sync-for-payables/Codat/Sync/Payables/Suppliers.cs index 23a789cd7..b8810c4d2 100644 --- a/sync-for-payables/Codat/Sync/Payables/Suppliers.cs +++ b/sync-for-payables/Codat/Sync/Payables/Suppliers.cs @@ -63,10 +63,10 @@ public class Suppliers: ISuppliers { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "4.0.0"; - private const string _sdkGenVersion = "2.413.0"; + private const string _sdkVersion = "5.0.0"; + private const string _sdkGenVersion = "2.429.0"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -177,10 +177,8 @@ public async Task ListAsync(ListSuppliersRequest request, response.Suppliers = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode)) { @@ -189,19 +187,15 @@ public async Task ListAsync(ListSuppliersRequest request, var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(CreateSupplierRequest request, RetryConfig? retryConfig = null) @@ -309,10 +303,8 @@ public async Task CreateAsync(CreateSupplierRequest requ response.Supplier = obj; return response; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(new List{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode)) { @@ -321,19 +313,15 @@ public async Task CreateAsync(CreateSupplierRequest requ var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/sync-for-payables/Codat/Sync/Payables/Utils/SecurityMetadata.cs b/sync-for-payables/Codat/Sync/Payables/Utils/SecurityMetadata.cs index 5de353825..dfbfac025 100644 --- a/sync-for-payables/Codat/Sync/Payables/Utils/SecurityMetadata.cs +++ b/sync-for-payables/Codat/Sync/Payables/Utils/SecurityMetadata.cs @@ -186,7 +186,9 @@ object value headerParams.Add(key, Utilities.PrefixBearer(valStr)); break; case "oauth2": - headerParams.Add(key, Utilities.PrefixBearer(valStr)); + if (!"client_credentials".Equals(schemeMetadata.SubType)) { + headerParams.Add(key, Utilities.PrefixBearer(valStr)); + } break; case "http": switch (schemeMetadata.SubType) diff --git a/sync-for-payables/NUGET.md b/sync-for-payables/NUGET.md index ee13c0d39..50922b2c9 100644 --- a/sync-for-payables/NUGET.md +++ b/sync-for-payables/NUGET.md @@ -56,7 +56,9 @@ var res = await sdk.Companies.ListAsync( exponent: 1.1 ), retryConnectionErrors: false - ),req); + ), + req +); // handle response ``` @@ -97,12 +99,23 @@ var res = await sdk.Companies.ListAsync(req); ## Error Handling -Handling errors in this SDK should largely match your expectations. All operations return a response object or thow an exception. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate type. +Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception. + +By default, an API error will raise a `Codat.Sync.Payables.Models.Errors.SDKException` exception, which has the following properties: + +| Property | Type | Description | +|---------------|-----------------------|-----------------------| +| `Message` | *string* | The error message | +| `StatusCode` | *int* | The HTTP status code | +| `RawResponse` | *HttpResponseMessage* | The raw HTTP response | +| `Body` | *string* | The response content | + +When custom error responses are specified for an operation, the SDK may also throw their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `ListAsync` method throws the following exceptions: -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ### Example @@ -132,11 +145,13 @@ catch (Exception ex) { if (ex is ErrorMessage) { - // handle exception + // Handle exception data + throw; } else if (ex is Codat.Sync.Payables.Models.Errors.SDKException) { - // handle exception + // Handle default exception + throw; } } ``` diff --git a/sync-for-payables/README.md b/sync-for-payables/README.md index 62e723de9..f5eb09ccc 100644 --- a/sync-for-payables/README.md +++ b/sync-for-payables/README.md @@ -88,25 +88,17 @@ var res = await sdk.Companies.ListAsync(req); ## Available Resources and Operations -### [Companies](docs/sdks/companies/README.md) - -* [List](docs/sdks/companies/README.md#list) - List companies -* [Create](docs/sdks/companies/README.md#create) - Create company -* [Update](docs/sdks/companies/README.md#update) - Update company -* [Delete](docs/sdks/companies/README.md#delete) - Delete a company -* [Get](docs/sdks/companies/README.md#get) - Get company +
+Available methods -### [Connections](docs/sdks/connections/README.md) +### [BankAccounts](docs/sdks/bankaccounts/README.md) -* [List](docs/sdks/connections/README.md#list) - List connections -* [Create](docs/sdks/connections/README.md#create) - Create connection -* [Get](docs/sdks/connections/README.md#get) - Get connection -* [Delete](docs/sdks/connections/README.md#delete) - Delete connection -* [Unlink](docs/sdks/connections/README.md#unlink) - Unlink connection +* [Create](docs/sdks/bankaccounts/README.md#create) - Create bank account -### [CompanyInformation](docs/sdks/companyinformation/README.md) +### [BillPayments](docs/sdks/billpayments/README.md) -* [Get](docs/sdks/companyinformation/README.md#get) - Get company information +* [GetPaymentOptions](docs/sdks/billpayments/README.md#getpaymentoptions) - Get payment mapping options +* [Create](docs/sdks/billpayments/README.md#create) - Create bill payment ### [Bills](docs/sdks/bills/README.md) @@ -117,19 +109,33 @@ var res = await sdk.Companies.ListAsync(req); * [ListAttachments](docs/sdks/bills/README.md#listattachments) - List bill attachments * [DownloadAttachment](docs/sdks/bills/README.md#downloadattachment) - Download bill attachment -### [BillPayments](docs/sdks/billpayments/README.md) -* [GetPaymentOptions](docs/sdks/billpayments/README.md#getpaymentoptions) - Get payment mapping options -* [Create](docs/sdks/billpayments/README.md#create) - Create bill payment +### [Companies](docs/sdks/companies/README.md) + +* [List](docs/sdks/companies/README.md#list) - List companies +* [Create](docs/sdks/companies/README.md#create) - Create company +* [Update](docs/sdks/companies/README.md#update) - Update company +* [Delete](docs/sdks/companies/README.md#delete) - Delete a company +* [Get](docs/sdks/companies/README.md#get) - Get company + +### [CompanyInformation](docs/sdks/companyinformation/README.md) + +* [Get](docs/sdks/companyinformation/README.md#get) - Get company information + +### [Connections](docs/sdks/connections/README.md) + +* [List](docs/sdks/connections/README.md#list) - List connections +* [Create](docs/sdks/connections/README.md#create) - Create connection +* [Get](docs/sdks/connections/README.md#get) - Get connection +* [Delete](docs/sdks/connections/README.md#delete) - Delete connection +* [Unlink](docs/sdks/connections/README.md#unlink) - Unlink connection ### [Suppliers](docs/sdks/suppliers/README.md) * [List](docs/sdks/suppliers/README.md#list) - List suppliers * [Create](docs/sdks/suppliers/README.md#create) - Create supplier -### [BankAccounts](docs/sdks/bankaccounts/README.md) - -* [Create](docs/sdks/bankaccounts/README.md#create) - Create bank account +
@@ -162,7 +168,9 @@ var res = await sdk.Companies.ListAsync( exponent: 1.1 ), retryConnectionErrors: false - ),req); + ), + req +); // handle response ``` @@ -203,12 +211,23 @@ var res = await sdk.Companies.ListAsync(req); ## Error Handling -Handling errors in this SDK should largely match your expectations. All operations return a response object or thow an exception. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate type. +Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception. + +By default, an API error will raise a `Codat.Sync.Payables.Models.Errors.SDKException` exception, which has the following properties: + +| Property | Type | Description | +|---------------|-----------------------|-----------------------| +| `Message` | *string* | The error message | +| `StatusCode` | *int* | The HTTP status code | +| `RawResponse` | *HttpResponseMessage* | The raw HTTP response | +| `Body` | *string* | The response content | + +When custom error responses are specified for an operation, the SDK may also throw their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `ListAsync` method throws the following exceptions: -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ### Example @@ -238,11 +257,13 @@ catch (Exception ex) { if (ex is ErrorMessage) { - // handle exception + // Handle exception data + throw; } else if (ex is Codat.Sync.Payables.Models.Errors.SDKException) { - // handle exception + // Handle default exception + throw; } } ``` diff --git a/sync-for-payables/RELEASES.md b/sync-for-payables/RELEASES.md index 29a675ae5..9f3df069d 100644 --- a/sync-for-payables/RELEASES.md +++ b/sync-for-payables/RELEASES.md @@ -108,4 +108,14 @@ Based on: ### Generated - [csharp v4.0.0] sync-for-payables ### Releases -- [NuGet v4.0.0] https://www.nuget.org/packages/Codat.Sync.Payables/4.0.0 - sync-for-payables \ No newline at end of file +- [NuGet v4.0.0] https://www.nuget.org/packages/Codat.Sync.Payables/4.0.0 - sync-for-payables + +## 2024-10-02 11:20:57 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.405.8 (2.429.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v5.0.0] sync-for-payables +### Releases +- [NuGet v5.0.0] https://www.nuget.org/packages/Codat.Sync.Payables/5.0.0 - sync-for-payables \ No newline at end of file diff --git a/sync-for-payables/docs/Models/Components/Bill.md b/sync-for-payables/docs/Models/Components/Bill.md index 43d2a6722..9356fdcdf 100644 --- a/sync-for-payables/docs/Models/Components/Bill.md +++ b/sync-for-payables/docs/Models/Components/Bill.md @@ -18,4 +18,4 @@ | `Status` | [BillStatus](../../Models/Components/BillStatus.md) | :heavy_check_mark: | Current state of the bill. If creating a bill the status must be `Open`. | Open | | `TotalAmount` | *decimal* | :heavy_minus_sign: | Amount of the bill, including tax. | | | `AmountDue` | *decimal* | :heavy_minus_sign: | Amount outstanding on the bill. | | -| `SourceModifiedDate` | [One](../../Models/Components/One.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `SourceModifiedDate` | *string* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | \ No newline at end of file diff --git a/sync-for-payables/docs/Models/Components/ClientRateLimitWebhook.md b/sync-for-payables/docs/Models/Components/ClientRateLimitWebhook.md new file mode 100644 index 000000000..6a373aea1 --- /dev/null +++ b/sync-for-payables/docs/Models/Components/ClientRateLimitWebhook.md @@ -0,0 +1,11 @@ +# ClientRateLimitWebhook + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Id` | *string* | :heavy_minus_sign: | Unique identifier of the event. | 743ec94a-8aa4-44bb-8bd4-e1855ee0e74b | +| `EventType` | *string* | :heavy_minus_sign: | The type of event. | client.rateLimit.reset | +| `GeneratedDate` | *string* | :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 | +| `Payload` | [ClientRateLimitWebhookPayload](../../Models/Components/ClientRateLimitWebhookPayload.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-payables/docs/Models/Components/ClientRateLimitWebhookPayload.md b/sync-for-payables/docs/Models/Components/ClientRateLimitWebhookPayload.md new file mode 100644 index 000000000..d055dc184 --- /dev/null +++ b/sync-for-payables/docs/Models/Components/ClientRateLimitWebhookPayload.md @@ -0,0 +1,10 @@ +# ClientRateLimitWebhookPayload + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `DailyQuota` | *long* | :heavy_minus_sign: | The number of available requests per day. | | +| `QuotaRemaining` | *long* | :heavy_minus_sign: | Total number of requests remaining for your client. | | +| `ExpiryDate` | *string* | :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-payables/docs/Models/Components/Company.md b/sync-for-payables/docs/Models/Components/Company.md index 63bf66316..67f61c72c 100644 --- a/sync-for-payables/docs/Models/Components/Company.md +++ b/sync-for-payables/docs/Models/Components/Company.md @@ -14,10 +14,10 @@ When you create a company, you can specify a `name` and we will automatically ge | `Id` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `Name` | *string* | :heavy_check_mark: | The name of the company | Codat Ltd. | | `Description` | *string* | :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. | -| ~~`Platform`~~ | *string* | :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` | *string* | :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 | | `LastSync` | *string* | :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` | *string* | :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 | | `CreatedByUserName` | *string* | :heavy_minus_sign: | Name of user that created the company in Codat. | | -| `DataConnections` | List<[Connection](../../Models/Components/Connection.md)> | :heavy_minus_sign: | N/A | | -| `Groups` | List<[GroupReference](../../Models/Components/GroupReference.md)> | :heavy_minus_sign: | An array of groups the company has been assigned to. | | \ No newline at end of file +| `Products` | List<*string*> | :heavy_minus_sign: | An array of products that are currently enabled for the company. | | +| `Tags` | [CompanyTags](../../Models/Components/CompanyTags.md) | :heavy_minus_sign: | A collection of user-defined key-value pairs that store custom metadata against the company. | | +| `DataConnections` | List<[Connection](../../Models/Components/Connection.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-payables/docs/Models/Components/CompanyRequestBody.md b/sync-for-payables/docs/Models/Components/CompanyRequestBody.md index c9f00ea37..865ceb07a 100644 --- a/sync-for-payables/docs/Models/Components/CompanyRequestBody.md +++ b/sync-for-payables/docs/Models/Components/CompanyRequestBody.md @@ -7,4 +7,4 @@ | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | `Name` | *string* | :heavy_check_mark: | Name of company being connected. | Bank of Dave | | `Description` | *string* | :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<[Items](../../Models/Components/Items.md)> | :heavy_minus_sign: | Reference to the groups that the company is assigned to. | | \ No newline at end of file +| `Tags` | [Tags](../../Models/Components/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 diff --git a/sync-for-payables/docs/Models/Components/CompanyTags.md b/sync-for-payables/docs/Models/Components/CompanyTags.md new file mode 100644 index 000000000..cbbb3f90f --- /dev/null +++ b/sync-for-payables/docs/Models/Components/CompanyTags.md @@ -0,0 +1,9 @@ +# 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/Components/Connection.md b/sync-for-payables/docs/Models/Components/Connection.md index 4a9683f91..92ecdfc4b 100644 --- a/sync-for-payables/docs/Models/Components/Connection.md +++ b/sync-for-payables/docs/Models/Components/Connection.md @@ -27,5 +27,4 @@ Before you can use a data connection to pull or push data, the company must gran | `LastSync` | *string* | :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` | *string* | :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 | | `DataConnectionErrors` | List<[DataConnectionError](../../Models/Components/DataConnectionError.md)> | :heavy_minus_sign: | N/A | | -| `ConnectionInfo` | Dictionary | :heavy_minus_sign: | N/A | | -| `AdditionalProperties` | *object* | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `ConnectionInfo` | Dictionary | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/sync-for-payables/docs/Models/Components/GroupReference.md b/sync-for-payables/docs/Models/Components/GroupReference.md deleted file mode 100644 index 904200f57..000000000 --- a/sync-for-payables/docs/Models/Components/GroupReference.md +++ /dev/null @@ -1,8 +0,0 @@ -# GroupReference - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `Id` | *string* | :heavy_minus_sign: | Unique identifier for the group. | 60d2fa12-8a04-11ee-b9d1-0242ac120002 | \ No newline at end of file diff --git a/sync-for-payables/docs/Models/Components/Items.md b/sync-for-payables/docs/Models/Components/Items.md deleted file mode 100644 index fcb438c45..000000000 --- a/sync-for-payables/docs/Models/Components/Items.md +++ /dev/null @@ -1,8 +0,0 @@ -# Items - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `Id` | *string* | :heavy_minus_sign: | Unique identifier for the group. | 60d2fa12-8a04-11ee-b9d1-0242ac120002 | \ No newline at end of file diff --git a/sync-for-payables/docs/Models/Components/One.md b/sync-for-payables/docs/Models/Components/One.md deleted file mode 100644 index 9af19fecd..000000000 --- a/sync-for-payables/docs/Models/Components/One.md +++ /dev/null @@ -1,8 +0,0 @@ -# One - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `SourceModifiedDate` | *string* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | \ No newline at end of file diff --git a/sync-for-payables/docs/Models/Components/Supplier.md b/sync-for-payables/docs/Models/Components/Supplier.md index 32f84a066..aa5046a23 100644 --- a/sync-for-payables/docs/Models/Components/Supplier.md +++ b/sync-for-payables/docs/Models/Components/Supplier.md @@ -19,4 +19,4 @@ Suppliers' data links to accounts payable [bills](https://docs.codat.io/sync-for | `Status` | [SupplierStatus](../../Models/Components/SupplierStatus.md) | :heavy_minus_sign: | Status of the supplier. | | | `Balance` | *decimal* | :heavy_minus_sign: | Amount outstanding against the supplier. | | | `DefaultCurrency` | *string* | :heavy_minus_sign: | Default currency the supplier's transactional data is recorded in. | | -| `SourceModifiedDate` | [One](../../Models/Components/One.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `SourceModifiedDate` | *string* | :heavy_minus_sign: | N/A | 2022-10-23 00:00:00 +0000 UTC | \ No newline at end of file diff --git a/sync-for-payables/docs/Models/Components/Tags.md b/sync-for-payables/docs/Models/Components/Tags.md new file mode 100644 index 000000000..6de993aa8 --- /dev/null +++ b/sync-for-payables/docs/Models/Components/Tags.md @@ -0,0 +1,9 @@ +# 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/Models/Errors/ErrorMessage.md b/sync-for-payables/docs/Models/Errors/ErrorMessage.md index d2bbecf67..375f0caa5 100644 --- a/sync-for-payables/docs/Models/Errors/ErrorMessage.md +++ b/sync-for-payables/docs/Models/Errors/ErrorMessage.md @@ -1,6 +1,6 @@ # ErrorMessage -The request made is not valid. +Your `query` parameter was not correctly formed ## Fields diff --git a/sync-for-payables/docs/Models/Requests/CreateCompanyResponse.md b/sync-for-payables/docs/Models/Requests/CreateCompanyResponse.md index b201c47d9..def78685c 100644 --- a/sync-for-payables/docs/Models/Requests/CreateCompanyResponse.md +++ b/sync-for-payables/docs/Models/Requests/CreateCompanyResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | -| `Company` | [Company](../../Models/Components/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 +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `Company` | [Company](../../Models/Components/Company.md) | :heavy_minus_sign: | OK | {
"id": "0498e921-9b53-4396-a412-4f2f5983b0a2",
"name": "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",
"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",
"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-payables/docs/Models/Requests/GetCompanyResponse.md b/sync-for-payables/docs/Models/Requests/GetCompanyResponse.md index 72642eb60..2151d7b95 100644 --- a/sync-for-payables/docs/Models/Requests/GetCompanyResponse.md +++ b/sync-for-payables/docs/Models/Requests/GetCompanyResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | -| `Company` | [Company](../../Models/Components/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 +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `Company` | [Company](../../Models/Components/Company.md) | :heavy_minus_sign: | OK | {
"id": "0498e921-9b53-4396-a412-4f2f5983b0a2",
"name": "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",
"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",
"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-payables/docs/Models/Requests/UpdateCompanyResponse.md b/sync-for-payables/docs/Models/Requests/UpdateCompanyResponse.md index ed16c8b92..1605884f0 100644 --- a/sync-for-payables/docs/Models/Requests/UpdateCompanyResponse.md +++ b/sync-for-payables/docs/Models/Requests/UpdateCompanyResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | -| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | -| `Company` | [Company](../../Models/Components/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 +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `Company` | [Company](../../Models/Components/Company.md) | :heavy_minus_sign: | OK | {
"id": "0498e921-9b53-4396-a412-4f2f5983b0a2",
"name": "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",
"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",
"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-payables/docs/Models/Webhooks/ClientRateLimitReachedResponse1.md b/sync-for-payables/docs/Models/Webhooks/ClientRateLimitReachedResponse1.md new file mode 100644 index 000000000..be0a6f609 --- /dev/null +++ b/sync-for-payables/docs/Models/Webhooks/ClientRateLimitReachedResponse1.md @@ -0,0 +1,10 @@ +# ClientRateLimitReachedResponse1 + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/Models/Webhooks/ClientRateLimitResetResponse1.md b/sync-for-payables/docs/Models/Webhooks/ClientRateLimitResetResponse1.md new file mode 100644 index 000000000..5a6778e68 --- /dev/null +++ b/sync-for-payables/docs/Models/Webhooks/ClientRateLimitResetResponse1.md @@ -0,0 +1,10 @@ +# ClientRateLimitResetResponse1 + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/sync-for-payables/docs/sdks/bankaccounts/README.md b/sync-for-payables/docs/sdks/bankaccounts/README.md index 0b0fc20b0..84d834119 100644 --- a/sync-for-payables/docs/sdks/bankaccounts/README.md +++ b/sync-for-payables/docs/sdks/bankaccounts/README.md @@ -52,7 +52,7 @@ var res = await sdk.BankAccounts.CreateAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-payables/docs/sdks/billpayments/README.md b/sync-for-payables/docs/sdks/billpayments/README.md index f5f29e7e5..ce34ce122 100644 --- a/sync-for-payables/docs/sdks/billpayments/README.md +++ b/sync-for-payables/docs/sdks/billpayments/README.md @@ -51,11 +51,10 @@ var res = await sdk.BillPayments.GetPaymentOptionsAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## Create @@ -103,7 +102,7 @@ var res = await sdk.BillPayments.CreateAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 409, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | \ 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 efa08cf86..1e16f532e 100644 --- a/sync-for-payables/docs/sdks/bills/README.md +++ b/sync-for-payables/docs/sdks/bills/README.md @@ -55,11 +55,10 @@ var res = await sdk.Bills.GetBillOptionsAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## List @@ -101,11 +100,10 @@ var res = await sdk.Bills.ListAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 409, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## Create @@ -154,11 +152,10 @@ var res = await sdk.Bills.CreateAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 409, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## UploadAttachment @@ -198,11 +195,10 @@ var res = await sdk.Bills.UploadAttachmentAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## ListAttachments @@ -242,11 +238,10 @@ var res = await sdk.Bills.ListAttachmentsAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401,402,403,404,409,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401, 402, 403, 404, 409, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## DownloadAttachment @@ -290,7 +285,7 @@ var res = await sdk.Bills.DownloadAttachmentAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-payables/docs/sdks/companies/README.md b/sync-for-payables/docs/sdks/companies/README.md index 04e6543c6..6f9d16e88 100644 --- a/sync-for-payables/docs/sdks/companies/README.md +++ b/sync-for-payables/docs/sdks/companies/README.md @@ -53,11 +53,10 @@ var res = await sdk.Companies.ListAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## Create @@ -73,18 +72,12 @@ If forbidden characters (see `name` pattern) are present in the request, a compa ```csharp using Codat.Sync.Payables; using Codat.Sync.Payables.Models.Components; -using System.Collections.Generic; var sdk = new CodatSyncPayables(authHeader: "Basic BASE_64_ENCODED(API_KEY)"); CompanyRequestBody req = new CompanyRequestBody() { Name = "Bank of Dave", Description = "Requested early access to the new financing scheme.", - Groups = new List() { - new Items() { - Id = "60d2fa12-8a04-11ee-b9d1-0242ac120002", - }, - }, }; var res = await sdk.Companies.CreateAsync(req); @@ -104,16 +97,14 @@ var res = await sdk.Companies.CreateAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## Update Use the *Update company* endpoint to update both the name and description of the company. -If you use [groups](https://docs.codat.io/sync-for-payables-api#/schemas/Group) to manage a set of companies, use the [Add company](https://docs.codat.io/sync-for-payables-api#/operations/add-company-to-group) or [Remove company](https://docs.codat.io/sync-for-payables-api#/operations/remove-company-from-group) endpoints to add or remove a company from a group. A [company](https://docs.codat.io/sync-for-payables-api#/schemas/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 for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. @@ -124,7 +115,6 @@ Each company can have multiple [connections](https://docs.codat.io/sync-for-paya using Codat.Sync.Payables; using Codat.Sync.Payables.Models.Requests; using Codat.Sync.Payables.Models.Components; -using System.Collections.Generic; var sdk = new CodatSyncPayables(authHeader: "Basic BASE_64_ENCODED(API_KEY)"); @@ -133,11 +123,6 @@ UpdateCompanyRequest req = new UpdateCompanyRequest() { CompanyRequestBody = new CompanyRequestBody() { Name = "Bank of Dave", Description = "Requested early access to the new financing scheme.", - Groups = new List() { - new Items() { - Id = "60d2fa12-8a04-11ee-b9d1-0242ac120002", - }, - }, }, }; @@ -158,11 +143,10 @@ var res = await sdk.Companies.UpdateAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## Delete @@ -202,11 +186,10 @@ var res = await sdk.Companies.DeleteAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## Get @@ -246,7 +229,7 @@ var res = await sdk.Companies.GetAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-payables/docs/sdks/companyinformation/README.md b/sync-for-payables/docs/sdks/companyinformation/README.md index edd809e84..f842a262e 100644 --- a/sync-for-payables/docs/sdks/companyinformation/README.md +++ b/sync-for-payables/docs/sdks/companyinformation/README.md @@ -46,7 +46,7 @@ var res = await sdk.CompanyInformation.GetAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-payables/docs/sdks/connections/README.md b/sync-for-payables/docs/sdks/connections/README.md index 2c104862c..888bd7462 100644 --- a/sync-for-payables/docs/sdks/connections/README.md +++ b/sync-for-payables/docs/sdks/connections/README.md @@ -51,11 +51,10 @@ var res = await sdk.Connections.ListAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## Create @@ -96,11 +95,10 @@ var res = await sdk.Connections.CreateAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## Get @@ -137,11 +135,10 @@ var res = await sdk.Connections.GetAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## Delete @@ -179,11 +176,10 @@ var res = await sdk.Connections.DeleteAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## Unlink @@ -220,7 +216,7 @@ var res = await sdk.Connections.UnlinkAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/sync-for-payables/docs/sdks/suppliers/README.md b/sync-for-payables/docs/sdks/suppliers/README.md index 5cd23b093..859fc931f 100644 --- a/sync-for-payables/docs/sdks/suppliers/README.md +++ b/sync-for-payables/docs/sdks/suppliers/README.md @@ -52,11 +52,10 @@ var res = await sdk.Suppliers.ListAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,409,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | - +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 409, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | ## Create @@ -102,7 +101,7 @@ var res = await sdk.Suppliers.CreateAsync(req); ### Errors -| Error Object | Status Code | Content Type | +| Error Type | Status Code | Content Type | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json | -| Codat.Sync.Payables.Models.Errors.SDKException | 4xx-5xx | */* | +| Codat.Sync.Payables.Models.Errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json | +| Codat.Sync.Payables.Models.Errors.SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file