diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 43c73b6c..02c8022f 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -1,4 +1,4 @@
-speakeasyVersion: 1.446.1
+speakeasyVersion: 1.447.0
sources:
accounting-source:
sourceNamespace: accounting-source
@@ -39,11 +39,12 @@ sources:
- 3.0.0
sync-for-commerce-source:
sourceNamespace: sync-for-commerce-source
- sourceRevisionDigest: sha256:cb5d21b0772d51cab179e51e610a8a801e4535bf1beb0deef33f63bd8ca7a5cc
- sourceBlobDigest: sha256:ab64a148f650a63d3411abb1686ffdcc252ddb1525415957d2dcd7e818882594
+ sourceRevisionDigest: sha256:e4039a2e5064b36672841a4e0fc7a0e1636dc9e4bc0cb78652e1ae3e59adc660
+ sourceBlobDigest: sha256:1d1592cd53dae647bff1e58e43cb64f19f9da714cfc6f6198c43659b89b05369
tags:
- latest
- - main
+ - speakeasy-sdk-regen-1732638650
+ - "1.1"
sync-for-expenses-source:
sourceNamespace: sync-for-expenses-source
sourceRevisionDigest: sha256:b5eb22d9cecae898f800d1dd163828079b3e370e151cb6dbf02122f0c8cff9cc
@@ -100,8 +101,10 @@ targets:
sync-for-commerce-library:
source: sync-for-commerce-source
sourceNamespace: sync-for-commerce-source
- sourceRevisionDigest: sha256:cb5d21b0772d51cab179e51e610a8a801e4535bf1beb0deef33f63bd8ca7a5cc
- sourceBlobDigest: sha256:ab64a148f650a63d3411abb1686ffdcc252ddb1525415957d2dcd7e818882594
+ sourceRevisionDigest: sha256:e4039a2e5064b36672841a4e0fc7a0e1636dc9e4bc0cb78652e1ae3e59adc660
+ sourceBlobDigest: sha256:1d1592cd53dae647bff1e58e43cb64f19f9da714cfc6f6198c43659b89b05369
+ codeSamplesNamespace: sync-for-commerce-source-code-samples
+ codeSamplesRevisionDigest: sha256:ff7247230bccbe9c59c157e7a3e9f5b5a76f1f7d296aa5c027d601ec09b60f59
sync-for-expenses-library:
source: sync-for-expenses-source
sourceNamespace: sync-for-expenses-source
diff --git a/sync-for-commerce/.speakeasy/gen.lock b/sync-for-commerce/.speakeasy/gen.lock
index 44ba7783..9b1e5f8e 100755
--- a/sync-for-commerce/.speakeasy/gen.lock
+++ b/sync-for-commerce/.speakeasy/gen.lock
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: ceb26af7-1fbd-4c3d-943d-832f8df5d4a3
management:
- docChecksum: 5b17c461a98ac32ecaa078bd4f1f644d
+ docChecksum: 4dd3691e8d9cbb167c6a1a7bffed41b8
docVersion: "1.1"
- speakeasyVersion: 1.396.7
- generationVersion: 2.415.6
- releaseVersion: 0.2.0
- configChecksum: 79349a11f55bb5f43e7809c3e304628b
+ speakeasyVersion: 1.447.0
+ generationVersion: 2.463.0
+ releaseVersion: 1.0.0
+ configChecksum: 6908b3177b93c0e00d852977795b3852
repoURL: https://github.com/codatio/client-sdk-java.git
repoSubDirectory: sync-for-commerce
published: true
@@ -14,7 +14,7 @@ features:
java:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.1
- core: 3.29.7
+ core: 3.32.2
deprecations: 2.81.1
examples: 2.81.3
globalSecurity: 2.82.7
@@ -25,6 +25,7 @@ features:
nullables: 0.1.0
retries: 0.1.1
sdkHooks: 0.1.0
+ serverEventsSentinels: 0.2.0
webhooks: 1.0.0
generatedFiles:
- .gitattributes
@@ -40,11 +41,15 @@ generatedFiles:
- docs/models/components/CommerceConfiguration.md
- docs/models/components/Companies.md
- docs/models/components/Company.md
+ - docs/models/components/CompanyReference.md
+ - docs/models/components/CompanyReferenceLinks.md
- docs/models/components/CompanySyncStatus.md
- docs/models/components/Configuration.md
- docs/models/components/ConfigurationMapSettings.md
- docs/models/components/ConfigurationOption.md
- docs/models/components/Connection.md
+ - docs/models/components/ConnectionWebhook.md
+ - docs/models/components/ConnectionWebhookPayload.md
- docs/models/components/Connections.md
- docs/models/components/CreateCompany.md
- docs/models/components/DataConnectionError.md
@@ -59,7 +64,6 @@ generatedFiles:
- docs/models/components/FeatureType.md
- docs/models/components/FeesConfiguration.md
- docs/models/components/FeesSupplier.md
- - docs/models/components/GroupReference.md
- docs/models/components/Grouping.md
- docs/models/components/GroupingLevels.md
- docs/models/components/GroupingPeriod.md
@@ -91,7 +95,6 @@ generatedFiles:
- docs/models/components/SyncStatus.md
- docs/models/components/SyncSummary.md
- docs/models/components/SyncToLatestArgs.md
- - docs/models/components/Tags.md
- docs/models/components/TaxRateAmount.md
- docs/models/components/TaxRateMapping.md
- docs/models/components/UpdateConnection.md
@@ -141,6 +144,7 @@ generatedFiles:
- docs/models/operations/UpdateConnectionResponse.md
- docs/models/operations/UpdateVisibleAccountsSyncFlowRequest.md
- docs/models/operations/UpdateVisibleAccountsSyncFlowResponse.md
+ - docs/models/webhooks/ConnectionDeletedResponse.md
- docs/models/webhooks/SyncConnectionDeletedResponse.md
- docs/sdks/advancedcontrols/README.md
- docs/sdks/codatsynccommerce/README.md
@@ -170,11 +174,15 @@ generatedFiles:
- src/main/java/io/codat/sync/commerce/models/components/CommerceConfiguration.java
- src/main/java/io/codat/sync/commerce/models/components/Companies.java
- src/main/java/io/codat/sync/commerce/models/components/Company.java
+ - src/main/java/io/codat/sync/commerce/models/components/CompanyReference.java
+ - src/main/java/io/codat/sync/commerce/models/components/CompanyReferenceLinks.java
- src/main/java/io/codat/sync/commerce/models/components/CompanySyncStatus.java
- src/main/java/io/codat/sync/commerce/models/components/Configuration.java
- src/main/java/io/codat/sync/commerce/models/components/ConfigurationMapSettings.java
- src/main/java/io/codat/sync/commerce/models/components/ConfigurationOption.java
- src/main/java/io/codat/sync/commerce/models/components/Connection.java
+ - src/main/java/io/codat/sync/commerce/models/components/ConnectionWebhook.java
+ - src/main/java/io/codat/sync/commerce/models/components/ConnectionWebhookPayload.java
- src/main/java/io/codat/sync/commerce/models/components/Connections.java
- src/main/java/io/codat/sync/commerce/models/components/CreateCompany.java
- src/main/java/io/codat/sync/commerce/models/components/DataConnectionError.java
@@ -189,7 +197,6 @@ generatedFiles:
- src/main/java/io/codat/sync/commerce/models/components/FeatureType.java
- src/main/java/io/codat/sync/commerce/models/components/FeesConfiguration.java
- src/main/java/io/codat/sync/commerce/models/components/FeesSupplier.java
- - src/main/java/io/codat/sync/commerce/models/components/GroupReference.java
- src/main/java/io/codat/sync/commerce/models/components/Grouping.java
- src/main/java/io/codat/sync/commerce/models/components/GroupingLevels.java
- src/main/java/io/codat/sync/commerce/models/components/GroupingPeriod.java
@@ -221,7 +228,6 @@ generatedFiles:
- src/main/java/io/codat/sync/commerce/models/components/SyncStatus.java
- src/main/java/io/codat/sync/commerce/models/components/SyncSummary.java
- src/main/java/io/codat/sync/commerce/models/components/SyncToLatestArgs.java
- - src/main/java/io/codat/sync/commerce/models/components/Tags.java
- src/main/java/io/codat/sync/commerce/models/components/TaxRateAmount.java
- src/main/java/io/codat/sync/commerce/models/components/TaxRateMapping.java
- src/main/java/io/codat/sync/commerce/models/components/UpdateConnection.java
@@ -296,6 +302,7 @@ generatedFiles:
- src/main/java/io/codat/sync/commerce/models/operations/UpdateVisibleAccountsSyncFlowRequest.java
- src/main/java/io/codat/sync/commerce/models/operations/UpdateVisibleAccountsSyncFlowRequestBuilder.java
- src/main/java/io/codat/sync/commerce/models/operations/UpdateVisibleAccountsSyncFlowResponse.java
+ - src/main/java/io/codat/sync/commerce/models/webhooks/ConnectionDeletedResponse.java
- src/main/java/io/codat/sync/commerce/models/webhooks/SyncConnectionDeletedResponse.java
- src/main/java/io/codat/sync/commerce/utils/BackoffStrategy.java
- src/main/java/io/codat/sync/commerce/utils/BigDecimalString.java
@@ -319,6 +326,7 @@ generatedFiles:
- src/main/java/io/codat/sync/commerce/utils/OneOfDeserializer.java
- src/main/java/io/codat/sync/commerce/utils/Options.java
- src/main/java/io/codat/sync/commerce/utils/PathParamsMetadata.java
+ - src/main/java/io/codat/sync/commerce/utils/QueryParameter.java
- src/main/java/io/codat/sync/commerce/utils/QueryParameters.java
- src/main/java/io/codat/sync/commerce/utils/QueryParamsMetadata.java
- src/main/java/io/codat/sync/commerce/utils/RequestBody.java
@@ -333,6 +341,7 @@ generatedFiles:
- src/main/java/io/codat/sync/commerce/utils/SpeakeasyMetadata.java
- src/main/java/io/codat/sync/commerce/utils/TypedObject.java
- src/main/java/io/codat/sync/commerce/utils/Types.java
+ - src/main/java/io/codat/sync/commerce/utils/Utf8UrlEncoder.java
- src/main/java/io/codat/sync/commerce/utils/Utils.java
examples:
get-config-text-sync-flow:
@@ -383,14 +392,14 @@ examples:
create-company:
"":
requestBody:
- application/json: {"description": "Requested early access to the new financing scheme.", "groups": [], "name": "string"}
+ application/json: {"description": "Requested early access to the new financing scheme.", "name": "string"}
responses:
"200":
- application/json: {"created": "2022-01-01T12:00:00.000Z", "createdByUserName": "string", "dataConnections": [{"created": "2022-10-27T09:53:29Z", "dataConnectionErrors": [], "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "description": "Requested early access to the new financing scheme.", "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "lastSync": "2022-01-01T12:00:00.000Z", "name": "string", "redirect": "https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739"}
+ application/json: {"created": "2022-01-01T12:00:00.000Z", "createdByUserName": "string", "dataConnections": [{"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "description": "Requested early access to the new financing scheme.", "id": "0498e921-9b53-4396-a412-4f2f5983b0a2", "lastSync": "2022-01-01T12:00:00.000Z", "name": "string", "redirect": "https://link.codat.io/company/27628208-459c-46a2-a705-5641ce25f739", "tags": {"region": "us", "uid": "f6b0c253-16c7-4da1-a0c5-9c871e9c9d6c"}}
"400": {}
Malformed query:
requestBody:
- application/json: {"description": "Requested early access to the new financing scheme.", "groups": [], "name": "Bank of Dave"}
+ application/json: {"description": "Requested early access to the new financing scheme.", "name": "Bank of Dave"}
responses:
"400":
application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error processing request - not valid.", "service": "PublicApi", "statusCode": 400}
@@ -496,7 +505,7 @@ examples:
orderBy: "-modifiedDate"
responses:
"200":
- application/json: {"_links": {"current": {"href": "string"}, "next": {"href": "string"}, "previous": {"href": "string"}, "self": {"href": "string"}}, "pageNumber": 0, "pageSize": 0, "results": [{"created": "2022-10-27T09:53:29Z", "dataConnectionErrors": [], "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "totalResults": 0}
+ application/json: {"_links": {"current": {"href": "string"}, "next": {"href": "string"}, "previous": {"href": "string"}, "self": {"href": "string"}}, "pageNumber": 0, "pageSize": 0, "results": [{"created": "2022-10-27T09:53:29Z", "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd", "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c", "integrationKey": "dfxm", "lastSync": "2022-10-27T10:22:43.6464237Z", "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start", "platformName": "Basiq", "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee", "sourceType": "Banking", "status": "Linked"}], "totalResults": 0}
Malformed query:
parameters:
path:
@@ -640,3 +649,4 @@ examples:
responses:
"400":
application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400}
+generatedTests: {}
diff --git a/sync-for-commerce/.speakeasy/gen.yaml b/sync-for-commerce/.speakeasy/gen.yaml
index a12e8288..7ee6625c 100644
--- a/sync-for-commerce/.speakeasy/gen.yaml
+++ b/sync-for-commerce/.speakeasy/gen.yaml
@@ -9,9 +9,10 @@ generation:
requestResponseComponentNamesFeb2024: false
auth:
oAuth2ClientCredentialsEnabled: false
+ oAuth2PasswordEnabled: false
telemetryEnabled: true
java:
- version: 0.2.0
+ version: 1.0.0
additionalDependencies: []
additionalPlugins: []
artifactID: sync.commerce
@@ -20,6 +21,7 @@ java:
companyEmail: support@codat.io
companyName: Codat
companyURL: https://www.codat.io/
+ defaultErrorName: SDKError
description: Push merchants' data from your ecommerce or point-of-sale (POS) platform into your merchants' accounting platform.
flattenGlobalSecurity: true
githubURL: github.com/codatio/client-sdk-java/sync.commerce
diff --git a/sync-for-commerce/README.md b/sync-for-commerce/README.md
index 4a6dff9b..6842285f 100644
--- a/sync-for-commerce/README.md
+++ b/sync-for-commerce/README.md
@@ -53,7 +53,7 @@ The samples below show how a published SDK artifact is used:
Gradle:
```groovy
-implementation 'io.codat:sync.commerce:0.2.0'
+implementation 'io.codat:sync.commerce:1.0.0'
```
Maven:
@@ -61,7 +61,7 @@ Maven:
io.codatsync.commerce
- 0.2.0
+ 1.0.0
```
@@ -91,41 +91,30 @@ package hello.world;
import io.codat.sync.commerce.CodatSyncCommerce;
import io.codat.sync.commerce.models.components.Locale;
-import io.codat.sync.commerce.models.errors.SDKError;
+import io.codat.sync.commerce.models.errors.ErrorMessage;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowRequest;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowResponse;
import java.lang.Exception;
public class Application {
- public static void main(String[] args) throws Exception {
- try {
- CodatSyncCommerce sdk = CodatSyncCommerce.builder()
+ public static void main(String[] args) throws ErrorMessage, Exception {
+
+ CodatSyncCommerce sdk = CodatSyncCommerce.builder()
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
- .build();
+ .build();
- GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
+ GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
.locale(Locale.EN_US)
.build();
- GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
+ GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
.request(req)
.call();
- if (res.localizationInfo().isPresent()) {
- // handle response
- }
- } catch (io.codat.sync.commerce.models.errors.ErrorMessage e) {
- // handle exception
- throw e;
- } catch (SDKError e) {
- // handle exception
- throw e;
- } catch (Exception e) {
- // handle exception
- throw e;
+ if (res.localizationInfo().isPresent()) {
+ // handle response
}
-
}
}
```
@@ -189,7 +178,7 @@ package hello.world;
import io.codat.sync.commerce.CodatSyncCommerce;
import io.codat.sync.commerce.models.components.Locale;
-import io.codat.sync.commerce.models.errors.SDKError;
+import io.codat.sync.commerce.models.errors.ErrorMessage;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowRequest;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowResponse;
import io.codat.sync.commerce.utils.BackoffStrategy;
@@ -199,17 +188,17 @@ import java.util.concurrent.TimeUnit;
public class Application {
- public static void main(String[] args) throws Exception {
- try {
- CodatSyncCommerce sdk = CodatSyncCommerce.builder()
+ public static void main(String[] args) throws ErrorMessage, Exception {
+
+ CodatSyncCommerce sdk = CodatSyncCommerce.builder()
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
- .build();
+ .build();
- GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
+ GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
.locale(Locale.EN_US)
.build();
- GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
+ GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
.request(req)
.retryConfig(RetryConfig.builder()
.backoff(BackoffStrategy.builder()
@@ -223,20 +212,9 @@ public class Application {
.build())
.call();
- if (res.localizationInfo().isPresent()) {
- // handle response
- }
- } catch (io.codat.sync.commerce.models.errors.ErrorMessage e) {
- // handle exception
- throw e;
- } catch (SDKError e) {
- // handle exception
- throw e;
- } catch (Exception e) {
- // handle exception
- throw e;
+ if (res.localizationInfo().isPresent()) {
+ // handle response
}
-
}
}
```
@@ -247,7 +225,7 @@ package hello.world;
import io.codat.sync.commerce.CodatSyncCommerce;
import io.codat.sync.commerce.models.components.Locale;
-import io.codat.sync.commerce.models.errors.SDKError;
+import io.codat.sync.commerce.models.errors.ErrorMessage;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowRequest;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowResponse;
import io.codat.sync.commerce.utils.BackoffStrategy;
@@ -257,9 +235,9 @@ import java.util.concurrent.TimeUnit;
public class Application {
- public static void main(String[] args) throws Exception {
- try {
- CodatSyncCommerce sdk = CodatSyncCommerce.builder()
+ public static void main(String[] args) throws ErrorMessage, Exception {
+
+ CodatSyncCommerce sdk = CodatSyncCommerce.builder()
.retryConfig(RetryConfig.builder()
.backoff(BackoffStrategy.builder()
.initialInterval(1L, TimeUnit.MILLISECONDS)
@@ -271,30 +249,19 @@ public class Application {
.build())
.build())
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
- .build();
+ .build();
- GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
+ GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
.locale(Locale.EN_US)
.build();
- GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
+ GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
.request(req)
.call();
- if (res.localizationInfo().isPresent()) {
- // handle response
- }
- } catch (io.codat.sync.commerce.models.errors.ErrorMessage e) {
- // handle exception
- throw e;
- } catch (SDKError e) {
- // handle exception
- throw e;
- } catch (Exception e) {
- // handle exception
- throw e;
+ if (res.localizationInfo().isPresent()) {
+ // handle response
}
-
}
}
```
@@ -303,12 +270,14 @@ public class Application {
## Error Handling
-Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Exception type.
+Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.
+
+By default, an API error will throw a `models/errors/SDKError` exception. When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `getConfigTextSyncFlow` method throws the following exceptions:
-| Error Object | Status Code | Content Type |
-| -------------------------- | -------------------------- | -------------------------- |
-| models/errors/ErrorMessage | 401,402,403,429,500,503 | application/json |
-| models/errors/SDKError | 4xx-5xx | \*\/* |
+| Error Type | Status Code | Content Type |
+| -------------------------- | ---------------------------- | ---------------- |
+| models/errors/ErrorMessage | 401, 402, 403, 429, 500, 503 | application/json |
+| models/errors/SDKError | 4XX, 5XX | \*/\* |
### Example
@@ -317,41 +286,30 @@ package hello.world;
import io.codat.sync.commerce.CodatSyncCommerce;
import io.codat.sync.commerce.models.components.Locale;
-import io.codat.sync.commerce.models.errors.SDKError;
+import io.codat.sync.commerce.models.errors.ErrorMessage;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowRequest;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowResponse;
import java.lang.Exception;
public class Application {
- public static void main(String[] args) throws Exception {
- try {
- CodatSyncCommerce sdk = CodatSyncCommerce.builder()
+ public static void main(String[] args) throws ErrorMessage, Exception {
+
+ CodatSyncCommerce sdk = CodatSyncCommerce.builder()
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
- .build();
+ .build();
- GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
+ GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
.locale(Locale.EN_US)
.build();
- GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
+ GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
.request(req)
.call();
- if (res.localizationInfo().isPresent()) {
- // handle response
- }
- } catch (io.codat.sync.commerce.models.errors.ErrorMessage e) {
- // handle exception
- throw e;
- } catch (SDKError e) {
- // handle exception
- throw e;
- } catch (Exception e) {
- // handle exception
- throw e;
+ if (res.localizationInfo().isPresent()) {
+ // handle response
}
-
}
}
```
@@ -360,106 +318,39 @@ public class Application {
## Server Selection
-### Select Server by Index
-
-You can override the default server globally by passing a server index to the `serverIndex` builder method when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
-
-| # | Server | Variables |
-| - | ------ | --------- |
-| 0 | `https://api.codat.io` | None |
-
-#### Example
-
-```java
-package hello.world;
-
-import io.codat.sync.commerce.CodatSyncCommerce;
-import io.codat.sync.commerce.models.components.Locale;
-import io.codat.sync.commerce.models.errors.SDKError;
-import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowRequest;
-import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowResponse;
-import java.lang.Exception;
-
-public class Application {
-
- public static void main(String[] args) throws Exception {
- try {
- CodatSyncCommerce sdk = CodatSyncCommerce.builder()
- .serverIndex(0)
- .authHeader("Basic BASE_64_ENCODED(API_KEY)")
- .build();
-
- GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
- .locale(Locale.EN_US)
- .build();
-
- GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
- .request(req)
- .call();
-
- if (res.localizationInfo().isPresent()) {
- // handle response
- }
- } catch (io.codat.sync.commerce.models.errors.ErrorMessage e) {
- // handle exception
- throw e;
- } catch (SDKError e) {
- // handle exception
- throw e;
- } catch (Exception e) {
- // handle exception
- throw e;
- }
-
- }
-}
-```
-
-
### Override Server URL Per-Client
-The default server can also be overridden globally by passing a URL to the `serverURL` builder method when initializing the SDK client instance. For example:
+The default server can also be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example:
```java
package hello.world;
import io.codat.sync.commerce.CodatSyncCommerce;
import io.codat.sync.commerce.models.components.Locale;
-import io.codat.sync.commerce.models.errors.SDKError;
+import io.codat.sync.commerce.models.errors.ErrorMessage;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowRequest;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowResponse;
import java.lang.Exception;
public class Application {
- public static void main(String[] args) throws Exception {
- try {
- CodatSyncCommerce sdk = CodatSyncCommerce.builder()
+ public static void main(String[] args) throws ErrorMessage, Exception {
+
+ CodatSyncCommerce sdk = CodatSyncCommerce.builder()
.serverURL("https://api.codat.io")
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
- .build();
+ .build();
- GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
+ GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
.locale(Locale.EN_US)
.build();
- GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
+ GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
.request(req)
.call();
- if (res.localizationInfo().isPresent()) {
- // handle response
- }
- } catch (io.codat.sync.commerce.models.errors.ErrorMessage e) {
- // handle exception
- throw e;
- } catch (SDKError e) {
- // handle exception
- throw e;
- } catch (Exception e) {
- // handle exception
- throw e;
+ if (res.localizationInfo().isPresent()) {
+ // handle response
}
-
}
}
```
@@ -472,9 +363,9 @@ public class Application {
This SDK supports the following security scheme globally:
-| Name | Type | Scheme |
-| ------------ | ------------ | ------------ |
-| `authHeader` | apiKey | API key |
+| Name | Type | Scheme |
+| ------------ | ------ | ------- |
+| `authHeader` | apiKey | API key |
To authenticate with the API the `authHeader` parameter must be set when initializing the SDK client instance. For example:
```java
@@ -482,41 +373,30 @@ package hello.world;
import io.codat.sync.commerce.CodatSyncCommerce;
import io.codat.sync.commerce.models.components.Locale;
-import io.codat.sync.commerce.models.errors.SDKError;
+import io.codat.sync.commerce.models.errors.ErrorMessage;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowRequest;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowResponse;
import java.lang.Exception;
public class Application {
- public static void main(String[] args) throws Exception {
- try {
- CodatSyncCommerce sdk = CodatSyncCommerce.builder()
+ public static void main(String[] args) throws ErrorMessage, Exception {
+
+ CodatSyncCommerce sdk = CodatSyncCommerce.builder()
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
- .build();
+ .build();
- GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
+ GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
.locale(Locale.EN_US)
.build();
- GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
+ GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
.request(req)
.call();
- if (res.localizationInfo().isPresent()) {
- // handle response
- }
- } catch (io.codat.sync.commerce.models.errors.ErrorMessage e) {
- // handle exception
- throw e;
- } catch (SDKError e) {
- // handle exception
- throw e;
- } catch (Exception e) {
- // handle exception
- throw e;
+ if (res.localizationInfo().isPresent()) {
+ // handle response
}
-
}
}
```
diff --git a/sync-for-commerce/RELEASES.md b/sync-for-commerce/RELEASES.md
index ddf7bf21..f104fe97 100644
--- a/sync-for-commerce/RELEASES.md
+++ b/sync-for-commerce/RELEASES.md
@@ -18,4 +18,14 @@ Based on:
### Generated
- [java v0.2.0] sync-for-commerce
### Releases
-- [Maven Central v0.2.0] https://central.sonatype.com/artifact/io.codat.sync/commerce/0.2.0 - sync-for-commerce
\ No newline at end of file
+- [Maven Central v0.2.0] https://central.sonatype.com/artifact/io.codat.sync/commerce/0.2.0 - sync-for-commerce
+
+## 2024-11-26 16:30:43
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.447.0 (2.463.0) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [java v1.0.0] sync-for-commerce
+### Releases
+- [Maven Central v1.0.0] https://central.sonatype.com/artifact/io.codat.sync/commerce/1.0.0 - sync-for-commerce
\ No newline at end of file
diff --git a/sync-for-commerce/USAGE.md b/sync-for-commerce/USAGE.md
index 5e1a957e..982f09b9 100644
--- a/sync-for-commerce/USAGE.md
+++ b/sync-for-commerce/USAGE.md
@@ -4,41 +4,30 @@ package hello.world;
import io.codat.sync.commerce.CodatSyncCommerce;
import io.codat.sync.commerce.models.components.Locale;
-import io.codat.sync.commerce.models.errors.SDKError;
+import io.codat.sync.commerce.models.errors.ErrorMessage;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowRequest;
import io.codat.sync.commerce.models.operations.GetConfigTextSyncFlowResponse;
import java.lang.Exception;
public class Application {
- public static void main(String[] args) throws Exception {
- try {
- CodatSyncCommerce sdk = CodatSyncCommerce.builder()
+ public static void main(String[] args) throws ErrorMessage, Exception {
+
+ CodatSyncCommerce sdk = CodatSyncCommerce.builder()
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
- .build();
+ .build();
- GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
+ GetConfigTextSyncFlowRequest req = GetConfigTextSyncFlowRequest.builder()
.locale(Locale.EN_US)
.build();
- GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
+ GetConfigTextSyncFlowResponse res = sdk.syncFlowSettings().getConfigTextSyncFlow()
.request(req)
.call();
- if (res.localizationInfo().isPresent()) {
- // handle response
- }
- } catch (io.codat.sync.commerce.models.errors.ErrorMessage e) {
- // handle exception
- throw e;
- } catch (SDKError e) {
- // handle exception
- throw e;
- } catch (Exception e) {
- // handle exception
- throw e;
+ if (res.localizationInfo().isPresent()) {
+ // handle response
}
-
}
}
```
diff --git a/sync-for-commerce/build.gradle b/sync-for-commerce/build.gradle
index a5f4e7cd..973c7c2d 100644
--- a/sync-for-commerce/build.gradle
+++ b/sync-for-commerce/build.gradle
@@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
}
group = "io.codat"
-version = "0.2.0"
+version = "1.0.0"
sourcesJar {
archiveBaseName = "sync.commerce"
@@ -101,7 +101,7 @@ publishing {
maven(MavenPublication) {
groupId = 'io.codat'
artifactId = 'sync.commerce'
- version = '0.2.0'
+ version = '1.0.0'
from components.java
@@ -145,10 +145,11 @@ if (!project.hasProperty('skip.signing')) {
}
dependencies {
+ api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2'
- implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
+ api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
implementation 'commons-io:commons-io:2.15.1'
diff --git a/sync-for-commerce/docs/models/components/AccountConfiguration.md b/sync-for-commerce/docs/models/components/AccountConfiguration.md
index b24c805c..693a4daf 100644
--- a/sync-for-commerce/docs/models/components/AccountConfiguration.md
+++ b/sync-for-commerce/docs/models/components/AccountConfiguration.md
@@ -5,10 +5,10 @@ G/L account object for configuration.
## Fields
-| Field | Type | Required | Description |
-| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
-| `accountOptions` | List<[AccountConfigurationOption](../../models/components/AccountConfigurationOption.md)> | :heavy_minus_sign: | Object containing account options. |
-| `descriptionText` | *JsonNullable* | :heavy_minus_sign: | Descriptive text for sales configuration section. |
-| `labelText` | *JsonNullable* | :heavy_minus_sign: | Label text for sales configuration section. |
-| `required` | *Optional* | :heavy_minus_sign: | Required section to be configured for sync. |
-| `selectedAccountId` | *JsonNullable* | :heavy_minus_sign: | Selected account id from the list of available accounts. |
\ No newline at end of file
+| Field | Type | Required | Description |
+| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
+| `accountOptions` | List\<[AccountConfigurationOption](../../models/components/AccountConfigurationOption.md)> | :heavy_minus_sign: | Object containing account options. |
+| `descriptionText` | *JsonNullable\* | :heavy_minus_sign: | Descriptive text for sales configuration section. |
+| `labelText` | *JsonNullable\* | :heavy_minus_sign: | Label text for sales configuration section. |
+| `required` | *Optional\* | :heavy_minus_sign: | Required section to be configured for sync. |
+| `selectedAccountId` | *JsonNullable\* | :heavy_minus_sign: | Selected account id from the list of available accounts. |
\ No newline at end of file
diff --git a/sync-for-commerce/docs/models/components/AccountConfigurationOption.md b/sync-for-commerce/docs/models/components/AccountConfigurationOption.md
index b7843f5f..ba84ba09 100644
--- a/sync-for-commerce/docs/models/components/AccountConfigurationOption.md
+++ b/sync-for-commerce/docs/models/components/AccountConfigurationOption.md
@@ -5,7 +5,7 @@
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `classification` | *JsonNullable* | :heavy_minus_sign: | Classification of the type of G/L account. | Bank Nominal |
-| `id` | *Optional* | :heavy_minus_sign: | Identifier for the account, unique for the company. | |
-| `name` | *JsonNullable* | :heavy_minus_sign: | Name of the account. | |
-| `nominalCode` | *JsonNullable* | :heavy_minus_sign: | Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. | |
\ No newline at end of file
+| `classification` | *JsonNullable\* | :heavy_minus_sign: | Classification of the type of G/L account. | Bank Nominal |
+| `id` | *Optional\* | :heavy_minus_sign: | Identifier for the account, unique for the company. | |
+| `name` | *JsonNullable\* | :heavy_minus_sign: | Name of the account. | |
+| `nominalCode` | *JsonNullable\* | :heavy_minus_sign: | Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. | |
\ No newline at end of file
diff --git a/sync-for-commerce/docs/models/components/Branding.md b/sync-for-commerce/docs/models/components/Branding.md
index 8cf784e8..ada9a738 100644
--- a/sync-for-commerce/docs/models/components/Branding.md
+++ b/sync-for-commerce/docs/models/components/Branding.md
@@ -5,6 +5,6 @@
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `button` | [Optional](../../models/components/BrandingButton.md) | :heavy_minus_sign: | Button branding references. | |
-| `logo` | [Optional](../../models/components/BrandingLogo.md) | :heavy_minus_sign: | Logo branding references. | |
-| `sourceId` | *Optional* | :heavy_minus_sign: | A source-specific ID used to distinguish between different sources originating from the same data connection. In general, a data connection is a single data source. However, for TrueLayer, `sourceId` is associated with a specific bank and has a many-to-one relationship with the `integrationId`. | 35b92968-9851-4095-ad60-395c95cbcba4 |
\ No newline at end of file
+| `button` | [Optional\](../../models/components/BrandingButton.md) | :heavy_minus_sign: | Button branding references. | |
+| `logo` | [Optional\](../../models/components/BrandingLogo.md) | :heavy_minus_sign: | Logo branding references. | |
+| `sourceId` | *Optional\* | :heavy_minus_sign: | A source-specific ID used to distinguish between different sources originating from the same data connection. In general, a data connection is a single data source. However, for TrueLayer, `sourceId` is associated with a specific bank and has a many-to-one relationship with the `integrationId`. | 35b92968-9851-4095-ad60-395c95cbcba4 |
\ No newline at end of file
diff --git a/sync-for-commerce/docs/models/components/BrandingButton.md b/sync-for-commerce/docs/models/components/BrandingButton.md
index d2e16b9e..51c15bb2 100644
--- a/sync-for-commerce/docs/models/components/BrandingButton.md
+++ b/sync-for-commerce/docs/models/components/BrandingButton.md
@@ -5,7 +5,7 @@ Button branding references.
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
-| `default_` | [Optional](../../models/components/BrandingImage.md) | :heavy_minus_sign: | N/A |
-| `hover` | [Optional](../../models/components/BrandingImage.md) | :heavy_minus_sign: | N/A |
\ No newline at end of file
+| Field | Type | Required | Description |
+| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
+| `default_` | [Optional\](../../models/components/BrandingImage.md) | :heavy_minus_sign: | N/A |
+| `hover` | [Optional\](../../models/components/BrandingImage.md) | :heavy_minus_sign: | N/A |
\ No newline at end of file
diff --git a/sync-for-commerce/docs/models/components/BrandingImage.md b/sync-for-commerce/docs/models/components/BrandingImage.md
index 43d70ffa..f7dec343 100644
--- a/sync-for-commerce/docs/models/components/BrandingImage.md
+++ b/sync-for-commerce/docs/models/components/BrandingImage.md
@@ -3,6 +3,6 @@
## Fields
-| Field | Type | Required | Description |
-| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
-| `image` | [Optional](../../models/components/ImageReference.md) | :heavy_minus_sign: | Image reference. |
\ No newline at end of file
+| Field | Type | Required | Description |
+| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
+| `image` | [Optional\](../../models/components/ImageReference.md) | :heavy_minus_sign: | Image reference. |
\ No newline at end of file
diff --git a/sync-for-commerce/docs/models/components/BrandingLogo.md b/sync-for-commerce/docs/models/components/BrandingLogo.md
index 842938cd..71368d4b 100644
--- a/sync-for-commerce/docs/models/components/BrandingLogo.md
+++ b/sync-for-commerce/docs/models/components/BrandingLogo.md
@@ -5,7 +5,7 @@ Logo branding references.
## Fields
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
-| `full` | [Optional](../../models/components/BrandingImage.md) | :heavy_minus_sign: | N/A |
-| `square` | [Optional](../../models/components/BrandingImage.md) | :heavy_minus_sign: | N/A |
\ No newline at end of file
+| Field | Type | Required | Description |
+| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
+| `full` | [Optional\](../../models/components/BrandingImage.md) | :heavy_minus_sign: | N/A |
+| `square` | [Optional\](../../models/components/BrandingImage.md) | :heavy_minus_sign: | N/A |
\ No newline at end of file
diff --git a/sync-for-commerce/docs/models/components/CommerceConfiguration.md b/sync-for-commerce/docs/models/components/CommerceConfiguration.md
index f5633492..9fc68930 100644
--- a/sync-for-commerce/docs/models/components/CommerceConfiguration.md
+++ b/sync-for-commerce/docs/models/components/CommerceConfiguration.md
@@ -3,11 +3,11 @@
## Fields
-| Field | Type | Required | Description |
-| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
-| `countryCode` | *Optional* | :heavy_minus_sign: | The country code outlining where the company is based. |
-| `fees` | [Optional](../../models/components/FeesConfiguration.md) | :heavy_minus_sign: | N/A |
-| `mapSettings` | [Optional](../../models/components/ConfigurationMapSettings.md) | :heavy_minus_sign: | N/A |
-| `newPayments` | [Optional](../../models/components/NewPaymentsConfiguration.md) | :heavy_minus_sign: | N/A |
-| `payments` | [Optional](../../models/components/PaymentsConfiguration.md) | :heavy_minus_sign: | N/A |
-| `sales` | [Optional](../../models/components/SalesConfiguration.md) | :heavy_minus_sign: | N/A |
\ No newline at end of file
+| Field | Type | Required | Description |
+| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
+| `countryCode` | *Optional\* | :heavy_minus_sign: | The country code outlining where the company is based. |
+| `fees` | [Optional\](../../models/components/FeesConfiguration.md) | :heavy_minus_sign: | N/A |
+| `mapSettings` | [Optional\](../../models/components/ConfigurationMapSettings.md) | :heavy_minus_sign: | N/A |
+| `newPayments` | [Optional\](../../models/components/NewPaymentsConfiguration.md) | :heavy_minus_sign: | N/A |
+| `payments` | [Optional\](../../models/components/PaymentsConfiguration.md) | :heavy_minus_sign: | N/A |
+| `sales` | [Optional\](../../models/components/SalesConfiguration.md) | :heavy_minus_sign: | N/A |
\ No newline at end of file
diff --git a/sync-for-commerce/docs/models/components/Companies.md b/sync-for-commerce/docs/models/components/Companies.md
index 3e6ef9b8..2abd4efd 100644
--- a/sync-for-commerce/docs/models/components/Companies.md
+++ b/sync-for-commerce/docs/models/components/Companies.md
@@ -8,5 +8,5 @@
| `links` | [Links](../../models/components/Links.md) | :heavy_check_mark: | N/A | { "self": { "href": "/companies" }, "current": { "href": "/companies?page=1\u0026pageSize=10" } } |
| `pageNumber` | *long* | :heavy_check_mark: | Current page number. | |
| `pageSize` | *long* | :heavy_check_mark: | Number of items to return in results array. | |
-| `results` | List<[Company](../../models/components/Company.md)> | :heavy_minus_sign: | N/A | |
+| `results` | List\<[Company](../../models/components/Company.md)> | :heavy_minus_sign: | N/A | |
| `totalResults` | *long* | :heavy_check_mark: | Total number of items. | |
\ No newline at end of file
diff --git a/sync-for-commerce/docs/models/components/Company.md b/sync-for-commerce/docs/models/components/Company.md
index 64761f7f..b5412d4c 100644
--- a/sync-for-commerce/docs/models/components/Company.md
+++ b/sync-for-commerce/docs/models/components/Company.md
@@ -11,12 +11,15 @@ When you create a company, you can specify a `name` and we will automatically ge
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `created` | *Optional* | :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` | *JsonNullable* | :heavy_minus_sign: | Name of user that created the company in Codat. | |
-| `dataConnections` | List<[Connection](../../models/components/Connection.md)> | :heavy_minus_sign: | N/A | |
-| `description` | *Optional* | :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. |
+| `created` | *Optional\* | :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` | *JsonNullable\* | :heavy_minus_sign: | Name of user that created the company in Codat. | |
+| `dataConnections` | List\<[Connection](../../models/components/Connection.md)> | :heavy_minus_sign: | N/A | |
+| `description` | *Optional\* | :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. |
| `id` | *String* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
-| `lastSync` | *Optional* | :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 |
+| `lastSync` | *Optional\* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:
``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ```
When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00`
> Time zones > > Not all dates from Codat will contain information about time zones. > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC |
| `name` | *String* | :heavy_check_mark: | The name of the company | Codat Ltd. |
+| `products` | List\<*String*> | :heavy_minus_sign: | An array of products that are currently enabled for the company. | |
| `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 |
-| `tags` | [Optional](../../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
+| `referenceParentCompany` | [Optional\](../../models/components/CompanyReference.md) | :heavy_minus_sign: | N/A | |
+| `referenceSubsidiaryCompanies` | List\<[CompanyReference](../../models/components/CompanyReference.md)> | :heavy_minus_sign: | A list of subsidiary companies owned or controlled by this entity. Empty if the company has no children. | |
+| `tags` | Map\ | :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-commerce/docs/models/components/CompanyReference.md b/sync-for-commerce/docs/models/components/CompanyReference.md
new file mode 100644
index 00000000..36df806e
--- /dev/null
+++ b/sync-for-commerce/docs/models/components/CompanyReference.md
@@ -0,0 +1,12 @@
+# CompanyReference
+
+
+## Fields
+
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
+| `description` | *Optional\* | :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. |
+| `id` | *Optional\* | :heavy_minus_sign: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
+| `links` | [Optional\](../../models/components/CompanyReferenceLinks.md) | :heavy_minus_sign: | A collection of links for the company. | |
+| `name` | *Optional\* | :heavy_minus_sign: | The name of the company | Codat Ltd. |
+| `tags` | Map\ | :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-commerce/docs/models/components/CompanyReferenceLinks.md b/sync-for-commerce/docs/models/components/CompanyReferenceLinks.md
new file mode 100644
index 00000000..cf075bb9
--- /dev/null
+++ b/sync-for-commerce/docs/models/components/CompanyReferenceLinks.md
@@ -0,0 +1,10 @@
+# CompanyReferenceLinks
+
+A collection of links for the company.
+
+
+## Fields
+
+| Field | Type | Required | Description |
+| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- |
+| `portal` | *Optional\* | :heavy_minus_sign: | Link to the company page in the portal. |
\ No newline at end of file
diff --git a/sync-for-commerce/docs/models/components/CompanySyncStatus.md b/sync-for-commerce/docs/models/components/CompanySyncStatus.md
index 820ff8fe..577bba83 100644
--- a/sync-for-commerce/docs/models/components/CompanySyncStatus.md
+++ b/sync-for-commerce/docs/models/components/CompanySyncStatus.md
@@ -5,11 +5,11 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `companyId` | *JsonNullable* | :heavy_minus_sign: | Unique identifier for your SMB in Codat. | d4d73051-ed31-42b6-99f6-d288cd940992 |
-| `dataPushed` | *Optional* | :heavy_minus_sign: | Boolean of whether the sync resulted in data being pushed. | |
-| `errorMessage` | *JsonNullable* | :heavy_minus_sign: | Error message of the sync. | |
-| `syncExceptionMessage` | *JsonNullable* | :heavy_minus_sign: | Exception message of the sync. | |
-| `syncId` | *JsonNullable* | :heavy_minus_sign: | Unique identifier of the sync. | a6a22aff-a43a-411d-a910-2dae73217cce |
-| `syncStatus` | *JsonNullable* | :heavy_minus_sign: | Text status of the sync. | Complete |
-| `syncStatusCode` | *Optional* | :heavy_minus_sign: | Status code of the sync. | 2000 |
-| `syncUtc` | *Optional* | :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
+| `companyId` | *JsonNullable\* | :heavy_minus_sign: | Unique identifier for your SMB in Codat. | d4d73051-ed31-42b6-99f6-d288cd940992 |
+| `dataPushed` | *Optional\* | :heavy_minus_sign: | Boolean of whether the sync resulted in data being pushed. | |
+| `errorMessage` | *JsonNullable\* | :heavy_minus_sign: | Error message of the sync. | |
+| `syncExceptionMessage` | *JsonNullable\* | :heavy_minus_sign: | Exception message of the sync. | |
+| `syncId` | *JsonNullable\* | :heavy_minus_sign: | Unique identifier of the sync. | a6a22aff-a43a-411d-a910-2dae73217cce |
+| `syncStatus` | *JsonNullable\* | :heavy_minus_sign: | Text status of the sync. | Complete |
+| `syncStatusCode` | *Optional\* | :heavy_minus_sign: | Status code of the sync. | 2000 |
+| `syncUtc` | *Optional\* | :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-commerce/docs/models/components/Configuration.md b/sync-for-commerce/docs/models/components/Configuration.md
index 32f640f9..8cf1af49 100644
--- a/sync-for-commerce/docs/models/components/Configuration.md
+++ b/sync-for-commerce/docs/models/components/Configuration.md
@@ -3,11 +3,11 @@
## Fields
-| Field | Type | Required | Description |
-| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
-| `accountingSoftwareCompanyName` | *Optional* | :heavy_minus_sign: | The company name defined in the accounting software. |
-| `companyId` | *Optional