Skip to content

Commit ece1266

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 0.25.0 (#71)
* ## Java SDK Changes Detected: * `apideck.accounting.expenses.list()`: `response.data.[]` **Changed** **Breaking** ⚠️ * `apideck.accounting.expenses.update()`: * `request.expense` **Changed** **Breaking** ⚠️ * `apideck.accounting.expenses.get()`: `response.data` **Changed** **Breaking** ⚠️ * `apideck.accounting.expenses.create()`: * `request.expense` **Changed** **Breaking** ⚠️ * `apideck.accounting.creditNotes.create()`: * `request.creditNote` **Changed** * `apideck.accounting.journalEntries.update()`: * `request.journalEntry.lineItems.[]` **Changed** * `apideck.accounting.invoiceItems.create()`: * `request.invoiceItem` **Changed** * `apideck.accounting.invoiceItems.update()`: * `request.invoiceItem` **Changed** * `apideck.accounting.bills.create()`: * `request.bill.lineItems.[]` **Changed** * `apideck.accounting.creditNotes.update()`: * `request.creditNote` **Changed** * `apideck.accounting.customers.create()`: * `request.customer` **Changed** * `apideck.accounting.customers.update()`: * `request.customer` **Changed** * `apideck.accounting.suppliers.create()`: * `request.supplier` **Changed** * `apideck.accounting.suppliers.update()`: * `request.supplier` **Changed** * `apideck.accounting.payments.create()`: * `request.payment.account.name` **Added** * `apideck.accounting.payments.update()`: * `request.payment.account.name` **Added** * `apideck.accounting.journalEntries.create()`: * `request.journalEntry.lineItems.[]` **Changed** * `apideck.accounting.ledgerAccounts.update()`: * `request.ledgerAccount.taxRate.code` **Added** * `apideck.accounting.purchaseOrders.create()`: * `request.purchaseOrder.lineItems.[]` **Changed** * `apideck.accounting.purchaseOrders.update()`: * `request.purchaseOrder.lineItems.[]` **Changed** * `apideck.accounting.bankAccounts.create()`: * `request.accountingBankAccount.ledgerAccount.name` **Added** * `apideck.accounting.bankAccounts.update()`: * `request.accountingBankAccount.ledgerAccount.name` **Added** * `apideck.accounting.billPayments.create()`: * `request.billPayment.account.name` **Added** * `apideck.accounting.billPayments.update()`: * `request.billPayment.account.name` **Added** * `apideck.accounting.ledgerAccounts.create()`: * `request.ledgerAccount.taxRate.code` **Added** * `apideck.accounting.invoices.update()`: * `request.invoice.lineItems.[]` **Changed** * `apideck.accounting.invoices.create()`: * `request.invoice.lineItems.[]` **Changed** * `apideck.accounting.bills.update()`: * `request.bill.lineItems.[]` **Changed** * `apideck.accounting.quotes.create()`: * `request.quote.lineItems.[]` **Changed** * `apideck.accounting.quotes.update()`: * `request.quote.lineItems.[]` **Changed** * `apideck.accounting.projects.create()`: * `request.project.taxRate.code` **Added** * `apideck.accounting.projects.update()`: * `request.project.taxRate.code` **Added** * empty commit to trigger [run-tests] workflow --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent ebaa9b4 commit ece1266

91 files changed

Lines changed: 4781 additions & 11073 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/gen.lock

Lines changed: 36 additions & 62 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ generation:
1919
hoistGlobalSecurity: true
2020
schemas:
2121
allOfMergeStrategy: shallowMerge
22+
requestBodyFieldName: ""
2223
tests:
2324
generateTests: true
2425
generateNewTests: false
2526
skipResponseBodyAssertions: false
2627
java:
27-
version: 0.24.0
28+
version: 0.25.0
2829
additionalDependencies: []
2930
additionalPlugins: []
3031
artifactID: unify

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.645.2
1+
speakeasyVersion: 1.650.0
22
sources:
33
Apideck-OAS:
44
sourceNamespace: apideck-oas
5-
sourceRevisionDigest: sha256:b853d0e347c5e03b6d989459d3ce5aeccbf07cdbbcdb400539e37ee3aa87fc95
6-
sourceBlobDigest: sha256:19888f84ff17da720e26e28b2e0f935c54da5d7d520c4dc7f05944efcf9bb708
5+
sourceRevisionDigest: sha256:b31dca0e2abcc3e920ba36075604c6c51728ca7c98ff9376c34a8f0df0e3e61a
6+
sourceBlobDigest: sha256:430e9bfae78eb3fc88153280a823c2949f707f61de86c3167b498d6e738156e2
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1761781307
9+
- speakeasy-sdk-regen-1762445118
1010
- 10.21.11
1111
targets:
1212
apideck:
1313
source: Apideck-OAS
1414
sourceNamespace: apideck-oas
15-
sourceRevisionDigest: sha256:b853d0e347c5e03b6d989459d3ce5aeccbf07cdbbcdb400539e37ee3aa87fc95
16-
sourceBlobDigest: sha256:19888f84ff17da720e26e28b2e0f935c54da5d7d520c4dc7f05944efcf9bb708
15+
sourceRevisionDigest: sha256:b31dca0e2abcc3e920ba36075604c6c51728ca7c98ff9376c34a8f0df0e3e61a
16+
sourceBlobDigest: sha256:430e9bfae78eb3fc88153280a823c2949f707f61de86c3167b498d6e738156e2
1717
codeSamplesNamespace: apideck-oas-java-code-samples
18-
codeSamplesRevisionDigest: sha256:8120da0ffd08a0792fc0d140f9c183f4bd81f55acaac09109e5b113e78f9e64e
18+
codeSamplesRevisionDigest: sha256:527cf84116c88a02c5a6a69368183d06e9ad2f4cce8f3d4f2431098d0a8d3506
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 59 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ The samples below show how a published SDK artifact is used:
5050

5151
Gradle:
5252
```groovy
53-
implementation 'com.apideck:unify:0.24.0'
53+
implementation 'com.apideck:unify:0.25.0'
5454
```
5555

5656
Maven:
5757
```xml
5858
<dependency>
5959
<groupId>com.apideck</groupId>
6060
<artifactId>unify</artifactId>
61-
<version>0.24.0</version>
61+
<version>0.25.0</version>
6262
</dependency>
6363
```
6464

@@ -1025,8 +1025,12 @@ import com.apideck.unify.models.components.TaxRatesFilter;
10251025
import com.apideck.unify.models.errors.*;
10261026
import com.apideck.unify.models.operations.AccountingTaxRatesAllRequest;
10271027
import com.apideck.unify.models.operations.AccountingTaxRatesAllResponse;
1028+
import java.io.UncheckedIOException;
1029+
import java.lang.Double;
10281030
import java.lang.Exception;
1031+
import java.lang.String;
10291032
import java.util.Map;
1033+
import java.util.Optional;
10301034

10311035
public class Application {
10321036

@@ -1037,29 +1041,63 @@ public class Application {
10371041
.appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX")
10381042
.apiKey(System.getenv().getOrDefault("API_KEY", ""))
10391043
.build();
1040-
1041-
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
1042-
.serviceId("salesforce")
1043-
.filter(TaxRatesFilter.builder()
1044-
.assets(true)
1045-
.equity(true)
1046-
.expenses(true)
1047-
.liabilities(true)
1048-
.revenue(true)
1049-
.build())
1050-
.passThrough(Map.ofEntries(
1051-
Map.entry("search", "San Francisco")))
1052-
.fields("id,updated_at")
1053-
.build();
1044+
try {
1045+
1046+
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
1047+
.serviceId("salesforce")
1048+
.filter(TaxRatesFilter.builder()
1049+
.assets(true)
1050+
.equity(true)
1051+
.expenses(true)
1052+
.liabilities(true)
1053+
.revenue(true)
1054+
.build())
1055+
.passThrough(Map.ofEntries(
1056+
Map.entry("search", "San Francisco")))
1057+
.fields("id,updated_at")
1058+
.build();
10541059

10551060

1056-
sdk.accounting().taxRates().list()
1057-
.callAsStream()
1058-
.forEach((AccountingTaxRatesAllResponse item) -> {
1059-
// handle page
1061+
sdk.accounting().taxRates().list()
1062+
.callAsStream()
1063+
.forEach((AccountingTaxRatesAllResponse item) -> {
1064+
// handle page
1065+
});
1066+
1067+
} catch (ApideckError ex) { // all SDK exceptions inherit from ApideckError
1068+
1069+
// ex.ToString() provides a detailed error message including
1070+
// HTTP status code, headers, and error payload (if any)
1071+
System.out.println(ex);
1072+
1073+
// Base exception fields
1074+
var rawResponse = ex.rawResponse();
1075+
var headers = ex.headers();
1076+
var contentType = headers.first("Content-Type");
1077+
int statusCode = ex.code();
1078+
Optional<byte[]> responseBody = ex.body();
1079+
1080+
// different error subclasses may be thrown
1081+
// depending on the service call
1082+
if (ex instanceof BadRequestResponse) {
1083+
var e = (BadRequestResponse) ex;
1084+
// Check error data fields
1085+
e.data().ifPresent(payload -> {
1086+
Optional<Double> statusCode = payload.statusCode();
1087+
Optional<String> error = payload.error();
1088+
// ...
10601089
});
1090+
}
10611091

1062-
}
1092+
// An underlying cause may be provided. If the error payload
1093+
// cannot be deserialized then the deserialization exception
1094+
// will be set as the cause.
1095+
if (ex.getCause() != null) {
1096+
var cause = ex.getCause();
1097+
}
1098+
} catch (UncheckedIOException ex) {
1099+
// handle IO error (connection, timeout, etc)
1100+
} }
10631101
}
10641102
```
10651103

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,4 +528,14 @@ Based on:
528528
### Generated
529529
- [java v0.24.0] .
530530
### Releases
531-
- [Maven Central v0.24.0] https://central.sonatype.com/artifact/com.apideck/unify/0.24.0 - .
531+
- [Maven Central v0.24.0] https://central.sonatype.com/artifact/com.apideck/unify/0.24.0 - .
532+
533+
## 2025-11-06 16:04:54
534+
### Changes
535+
Based on:
536+
- OpenAPI Doc
537+
- Speakeasy CLI 1.650.0 (2.743.2) https://github.com/speakeasy-api/speakeasy
538+
### Generated
539+
- [java v0.25.0] .
540+
### Releases
541+
- [Maven Central v0.25.0] https://central.sonatype.com/artifact/com.apideck/unify/0.25.0 - .

docs/models/components/AccountingBankAccountInput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| `name` | *JsonNullable\<String>* | :heavy_minus_sign: | The name of the bank account | Main Operating Account |
1010
| `accountNumber` | *JsonNullable\<String>* | :heavy_minus_sign: | The bank account number | 123465 |
1111
| `accountType` | [Optional\<AccountingBankAccountAccountType>](../../models/components/AccountingBankAccountAccountType.md) | :heavy_minus_sign: | The type of bank account | checking |
12-
| `ledgerAccount` | [JsonNullable\<LinkedLedgerAccountInput>](../../models/components/LinkedLedgerAccountInput.md) | :heavy_minus_sign: | N/A | |
12+
| `ledgerAccount` | [JsonNullable\<LinkedLedgerAccount>](../../models/components/LinkedLedgerAccount.md) | :heavy_minus_sign: | N/A | |
1313
| `bankName` | *JsonNullable\<String>* | :heavy_minus_sign: | The name of the bank or financial institution | Chase Bank |
1414
| `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 |
1515
| `balance` | *JsonNullable\<Double>* | :heavy_minus_sign: | The current balance of the bank account | 25000 |

docs/models/components/Bill.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
| `terms` | *JsonNullable\<String>* | :heavy_minus_sign: | Terms of payment. | Net 30 days |
2525
| `balance` | *JsonNullable\<Double>* | :heavy_minus_sign: | Balance of bill due. | 27500 |
2626
| `deposit` | *JsonNullable\<Double>* | :heavy_minus_sign: | Amount of deposit made to this bill. | 0 |
27-
| `subTotal` | *JsonNullable\<Double>* | :heavy_minus_sign: | Sub-total amount, normally before tax. | 27500 |
28-
| `totalTax` | *JsonNullable\<Double>* | :heavy_minus_sign: | Total tax amount applied to this bill. | 2500 |
27+
| `subTotal` | *JsonNullable\<Double>* | :heavy_minus_sign: | Subtotal amount, normally before tax. | 250 |
28+
| `totalTax` | *JsonNullable\<Double>* | :heavy_minus_sign: | Total tax amount applied to this transaction. | 25 |
2929
| `total` | *JsonNullable\<Double>* | :heavy_minus_sign: | Total amount of bill, including tax. | 27500 |
3030
| `taxCode` | *JsonNullable\<String>* | :heavy_minus_sign: | Applicable tax id/code override if tax is not supplied on a line item basis. | 1234 |
3131
| `notes` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A | Some notes about this bill. |

0 commit comments

Comments
 (0)