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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 36 additions & 62 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ generation:
hoistGlobalSecurity: true
schemas:
allOfMergeStrategy: shallowMerge
requestBodyFieldName: ""
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 0.24.0
version: 0.25.0
additionalDependencies: []
additionalPlugins: []
artifactID: unify
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.645.2
speakeasyVersion: 1.650.0
sources:
Apideck-OAS:
sourceNamespace: apideck-oas
sourceRevisionDigest: sha256:b853d0e347c5e03b6d989459d3ce5aeccbf07cdbbcdb400539e37ee3aa87fc95
sourceBlobDigest: sha256:19888f84ff17da720e26e28b2e0f935c54da5d7d520c4dc7f05944efcf9bb708
sourceRevisionDigest: sha256:b31dca0e2abcc3e920ba36075604c6c51728ca7c98ff9376c34a8f0df0e3e61a
sourceBlobDigest: sha256:430e9bfae78eb3fc88153280a823c2949f707f61de86c3167b498d6e738156e2
tags:
- latest
- speakeasy-sdk-regen-1761781307
- speakeasy-sdk-regen-1762445118
- 10.21.11
targets:
apideck:
source: Apideck-OAS
sourceNamespace: apideck-oas
sourceRevisionDigest: sha256:b853d0e347c5e03b6d989459d3ce5aeccbf07cdbbcdb400539e37ee3aa87fc95
sourceBlobDigest: sha256:19888f84ff17da720e26e28b2e0f935c54da5d7d520c4dc7f05944efcf9bb708
sourceRevisionDigest: sha256:b31dca0e2abcc3e920ba36075604c6c51728ca7c98ff9376c34a8f0df0e3e61a
sourceBlobDigest: sha256:430e9bfae78eb3fc88153280a823c2949f707f61de86c3167b498d6e738156e2
codeSamplesNamespace: apideck-oas-java-code-samples
codeSamplesRevisionDigest: sha256:8120da0ffd08a0792fc0d140f9c183f4bd81f55acaac09109e5b113e78f9e64e
codeSamplesRevisionDigest: sha256:527cf84116c88a02c5a6a69368183d06e9ad2f4cce8f3d4f2431098d0a8d3506
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
80 changes: 59 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.apideck:unify:0.24.0'
implementation 'com.apideck:unify:0.25.0'
```

Maven:
```xml
<dependency>
<groupId>com.apideck</groupId>
<artifactId>unify</artifactId>
<version>0.24.0</version>
<version>0.25.0</version>
</dependency>
```

Expand Down Expand Up @@ -1025,8 +1025,12 @@ import com.apideck.unify.models.components.TaxRatesFilter;
import com.apideck.unify.models.errors.*;
import com.apideck.unify.models.operations.AccountingTaxRatesAllRequest;
import com.apideck.unify.models.operations.AccountingTaxRatesAllResponse;
import java.io.UncheckedIOException;
import java.lang.Double;
import java.lang.Exception;
import java.lang.String;
import java.util.Map;
import java.util.Optional;

public class Application {

Expand All @@ -1037,29 +1041,63 @@ public class Application {
.appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX")
.apiKey(System.getenv().getOrDefault("API_KEY", ""))
.build();

AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
.serviceId("salesforce")
.filter(TaxRatesFilter.builder()
.assets(true)
.equity(true)
.expenses(true)
.liabilities(true)
.revenue(true)
.build())
.passThrough(Map.ofEntries(
Map.entry("search", "San Francisco")))
.fields("id,updated_at")
.build();
try {

AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
.serviceId("salesforce")
.filter(TaxRatesFilter.builder()
.assets(true)
.equity(true)
.expenses(true)
.liabilities(true)
.revenue(true)
.build())
.passThrough(Map.ofEntries(
Map.entry("search", "San Francisco")))
.fields("id,updated_at")
.build();


sdk.accounting().taxRates().list()
.callAsStream()
.forEach((AccountingTaxRatesAllResponse item) -> {
// handle page
sdk.accounting().taxRates().list()
.callAsStream()
.forEach((AccountingTaxRatesAllResponse item) -> {
// handle page
});

} catch (ApideckError ex) { // all SDK exceptions inherit from ApideckError

// ex.ToString() provides a detailed error message including
// HTTP status code, headers, and error payload (if any)
System.out.println(ex);

// Base exception fields
var rawResponse = ex.rawResponse();
var headers = ex.headers();
var contentType = headers.first("Content-Type");
int statusCode = ex.code();
Optional<byte[]> responseBody = ex.body();

// different error subclasses may be thrown
// depending on the service call
if (ex instanceof BadRequestResponse) {
var e = (BadRequestResponse) ex;
// Check error data fields
e.data().ifPresent(payload -> {
Optional<Double> statusCode = payload.statusCode();
Optional<String> error = payload.error();
// ...
});
}

}
// An underlying cause may be provided. If the error payload
// cannot be deserialized then the deserialization exception
// will be set as the cause.
if (ex.getCause() != null) {
var cause = ex.getCause();
}
} catch (UncheckedIOException ex) {
// handle IO error (connection, timeout, etc)
} }
}
```

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -528,4 +528,14 @@ Based on:
### Generated
- [java v0.24.0] .
### Releases
- [Maven Central v0.24.0] https://central.sonatype.com/artifact/com.apideck/unify/0.24.0 - .
- [Maven Central v0.24.0] https://central.sonatype.com/artifact/com.apideck/unify/0.24.0 - .

## 2025-11-06 16:04:54
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.650.0 (2.743.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.25.0] .
### Releases
- [Maven Central v0.25.0] https://central.sonatype.com/artifact/com.apideck/unify/0.25.0 - .
2 changes: 1 addition & 1 deletion docs/models/components/AccountingBankAccountInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| `name` | *JsonNullable\<String>* | :heavy_minus_sign: | The name of the bank account | Main Operating Account |
| `accountNumber` | *JsonNullable\<String>* | :heavy_minus_sign: | The bank account number | 123465 |
| `accountType` | [Optional\<AccountingBankAccountAccountType>](../../models/components/AccountingBankAccountAccountType.md) | :heavy_minus_sign: | The type of bank account | checking |
| `ledgerAccount` | [JsonNullable\<LinkedLedgerAccountInput>](../../models/components/LinkedLedgerAccountInput.md) | :heavy_minus_sign: | N/A | |
| `ledgerAccount` | [JsonNullable\<LinkedLedgerAccount>](../../models/components/LinkedLedgerAccount.md) | :heavy_minus_sign: | N/A | |
| `bankName` | *JsonNullable\<String>* | :heavy_minus_sign: | The name of the bank or financial institution | Chase Bank |
| `currency` | [JsonNullable\<Currency>](../../models/components/Currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD |
| `balance` | *JsonNullable\<Double>* | :heavy_minus_sign: | The current balance of the bank account | 25000 |
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/Bill.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
| `terms` | *JsonNullable\<String>* | :heavy_minus_sign: | Terms of payment. | Net 30 days |
| `balance` | *JsonNullable\<Double>* | :heavy_minus_sign: | Balance of bill due. | 27500 |
| `deposit` | *JsonNullable\<Double>* | :heavy_minus_sign: | Amount of deposit made to this bill. | 0 |
| `subTotal` | *JsonNullable\<Double>* | :heavy_minus_sign: | Sub-total amount, normally before tax. | 27500 |
| `totalTax` | *JsonNullable\<Double>* | :heavy_minus_sign: | Total tax amount applied to this bill. | 2500 |
| `subTotal` | *JsonNullable\<Double>* | :heavy_minus_sign: | Subtotal amount, normally before tax. | 250 |
| `totalTax` | *JsonNullable\<Double>* | :heavy_minus_sign: | Total tax amount applied to this transaction. | 25 |
| `total` | *JsonNullable\<Double>* | :heavy_minus_sign: | Total amount of bill, including tax. | 27500 |
| `taxCode` | *JsonNullable\<String>* | :heavy_minus_sign: | Applicable tax id/code override if tax is not supplied on a line item basis. | 1234 |
| `notes` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A | Some notes about this bill. |
Expand Down
Loading