Skip to content

Commit 252869f

Browse files
authored
Merge pull request #104 from apideck-libraries/speakeasy-sdk-regen-1773169944
chore: 🐝 Update SDK - Generate 0.31.0
2 parents 2ce58e6 + c409f70 commit 252869f

File tree

775 files changed

+44025
-4581
lines changed

Some content is hidden

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

775 files changed

+44025
-4581
lines changed

.gitattributes

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@
44
# Linux start script should use lf
55
/gradlew text eol=lf
66

7-
# These are Windows script files and should use crlf
8-
*.bat text eol=crlf
9-
107
# This allows generated code to be indexed correctly
118
*.java linguist-generated=false

.speakeasy/gen.lock

Lines changed: 2156 additions & 1352 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ generation:
2929
generateNewTests: false
3030
skipResponseBodyAssertions: false
3131
java:
32-
version: 0.30.4
32+
version: 0.31.0
3333
additionalDependencies: []
3434
additionalPlugins: []
3535
artifactID: unify
@@ -44,11 +44,13 @@ java:
4444
enableFormatting: false
4545
enableSlf4jLogging: false
4646
enableStreamingUploads: false
47+
explicitDocImports: false
4748
flattenGlobalSecurity: true
4849
forwardCompatibleEnumsByDefault: true
4950
forwardCompatibleUnionsByDefault: "false"
5051
generateOptionalUnionAccessors: false
5152
generateSpringBootStarter: true
53+
generateUnionDocs: false
5254
githubURL: github.com/apideck-libraries/sdk-java
5355
groupID: com.apideck
5456
imports:
@@ -71,7 +73,9 @@ java:
7173
nullFriendlyParameters: false
7274
operationScopedParams: true
7375
outputModelSuffix: output
76+
prefixModeMethodNames: false
7477
projectName: Apideck
7578
respectTitlesForPrimitiveUnionMembers: false
79+
showSetterGetterTypesInDocs: false
7680
templateVersion: v2
7781
unionStrategy: populated-fields

.speakeasy/workflow.lock

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
speakeasyVersion: 1.730.1
1+
speakeasyVersion: 1.751.0
22
sources:
33
Apideck-OAS:
44
sourceNamespace: apideck-oas
5-
sourceRevisionDigest: sha256:0921989ae6eefad00cd2f8f57dd570e7379873127dec5baf290b2cd36e6677b0
6-
sourceBlobDigest: sha256:5e8963221997e9911ebc2b4eb25b29439c3ea9f165a15465534e2fc29980b483
5+
sourceRevisionDigest: sha256:f3977c0fd3fdfd72b6788a92a1717fcec2f8beb64fed663a25c73cc2fcb8a446
6+
sourceBlobDigest: sha256:157db80dcaf1719aadf19d94acd406d7684585fcf23568f18911a0955aeab002
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1771345444
10-
- 10.23.21
9+
- 10.24.3
1110
targets:
1211
apideck:
1312
source: Apideck-OAS
1413
sourceNamespace: apideck-oas
15-
sourceRevisionDigest: sha256:0921989ae6eefad00cd2f8f57dd570e7379873127dec5baf290b2cd36e6677b0
16-
sourceBlobDigest: sha256:5e8963221997e9911ebc2b4eb25b29439c3ea9f165a15465534e2fc29980b483
14+
sourceRevisionDigest: sha256:f3977c0fd3fdfd72b6788a92a1717fcec2f8beb64fed663a25c73cc2fcb8a446
15+
sourceBlobDigest: sha256:157db80dcaf1719aadf19d94acd406d7684585fcf23568f18911a0955aeab002
1716
codeSamplesNamespace: apideck-oas-java-code-samples
18-
codeSamplesRevisionDigest: sha256:f1e87e8e4b7b264f59eddf0ace5f4627a77b640881de316af4346650f1975104
17+
codeSamplesRevisionDigest: sha256:e7e0726610ce32d62fc7087f3103574377a53c6d64a1b48a2cbff8b37c9f3f79
1918
workflow:
2019
workflowVersion: 1.0.0
2120
speakeasyVersion: latest

README.md

Lines changed: 79 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ For more information about the API: [Apideck Developer Docs](https://developers.
3333
* [Authentication](#authentication)
3434
* [Custom HTTP Client](#custom-http-client)
3535
* [Debugging](#debugging)
36+
* [Jackson Configuration](#jackson-configuration)
3637
* [Development](#development)
3738
* [Maturity](#maturity)
3839
* [Contributions](#contributions)
@@ -50,15 +51,15 @@ The samples below show how a published SDK artifact is used:
5051

5152
Gradle:
5253
```groovy
53-
implementation 'com.apideck:unify:0.30.4'
54+
implementation 'com.apideck:unify:0.31.0'
5455
```
5556

5657
Maven:
5758
```xml
5859
<dependency>
5960
<groupId>com.apideck</groupId>
6061
<artifactId>unify</artifactId>
61-
<version>0.30.4</version>
62+
<version>0.31.0</version>
6263
</dependency>
6364
```
6465

@@ -105,6 +106,7 @@ public class Application {
105106

106107
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
107108
.serviceId("salesforce")
109+
.companyId("12345")
108110
.filter(TaxRatesFilter.builder()
109111
.assets(true)
110112
.equity(true)
@@ -153,6 +155,7 @@ public class Application {
153155

154156
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
155157
.serviceId("salesforce")
158+
.companyId("12345")
156159
.filter(TaxRatesFilter.builder()
157160
.assets(true)
158161
.equity(true)
@@ -181,6 +184,15 @@ public class Application {
181184
```
182185

183186
[comp-fut]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html
187+
188+
#### Union Consumption Patterns
189+
190+
When a response field is a union model:
191+
192+
- Discriminated unions: branch on the discriminator (`switch`) and then narrow to the concrete type.
193+
- Non-discriminated unions: use generated accessors (for example `string()`, `asLong()`, `simpleObject()`) to determine the active variant.
194+
195+
For full model-specific examples (including Java 11/16/21 variants), see each union model's **Supported Types** section in the generated model docs.
184196
<!-- End SDK Example Usage [usage] -->
185197

186198
<!-- Start Available Resources and Operations [operations] -->
@@ -254,6 +266,10 @@ public class Application {
254266
* [list](docs/sdks/categories/README.md#list) - List Categories
255267
* [get](docs/sdks/categories/README.md#get) - Get Category
256268

269+
### [Accounting.Companies](docs/sdks/companies/README.md)
270+
271+
* [list](docs/sdks/companies/README.md#list) - List companies
272+
257273
### [Accounting.CompanyInfo](docs/sdks/companyinfo/README.md)
258274

259275
* [get](docs/sdks/companyinfo/README.md#get) - Get company info
@@ -390,6 +406,14 @@ public class Application {
390406
* [update](docs/sdks/quotes/README.md#update) - Update Quote
391407
* [delete](docs/sdks/quotes/README.md#delete) - Delete Quote
392408

409+
### [Accounting.Refunds](docs/sdks/refunds/README.md)
410+
411+
* [list](docs/sdks/refunds/README.md#list) - List Refunds
412+
* [create](docs/sdks/refunds/README.md#create) - Create Refund
413+
* [get](docs/sdks/refunds/README.md#get) - Get Refund
414+
* [update](docs/sdks/refunds/README.md#update) - Update Refund
415+
* [delete](docs/sdks/refunds/README.md#delete) - Delete Refund
416+
393417
### [Accounting.Subsidiaries](docs/sdks/subsidiaries/README.md)
394418

395419
* [list](docs/sdks/subsidiaries/README.md#list) - List Subsidiaries
@@ -441,7 +465,10 @@ public class Application {
441465
### [Ats.Jobs](docs/sdks/jobs/README.md)
442466

443467
* [list](docs/sdks/jobs/README.md#list) - List Jobs
468+
* [create](docs/sdks/jobs/README.md#create) - Create Job
444469
* [get](docs/sdks/jobs/README.md#get) - Get Job
470+
* [update](docs/sdks/jobs/README.md#update) - Update Job
471+
* [delete](docs/sdks/jobs/README.md#delete) - Delete Job
445472

446473
### [Connector.ApiResourceCoverage](docs/sdks/apiresourcecoverage/README.md)
447474

@@ -477,13 +504,13 @@ public class Application {
477504
* [update](docs/sdks/activities/README.md#update) - Update activity
478505
* [delete](docs/sdks/activities/README.md#delete) - Delete activity
479506

480-
### [Crm.Companies](docs/sdks/companies/README.md)
507+
### [Crm.Companies](docs/sdks/apideckcompanies/README.md)
481508

482-
* [list](docs/sdks/companies/README.md#list) - List companies
483-
* [create](docs/sdks/companies/README.md#create) - Create company
484-
* [get](docs/sdks/companies/README.md#get) - Get company
485-
* [update](docs/sdks/companies/README.md#update) - Update company
486-
* [delete](docs/sdks/companies/README.md#delete) - Delete company
509+
* [list](docs/sdks/apideckcompanies/README.md#list) - List companies
510+
* [create](docs/sdks/apideckcompanies/README.md#create) - Create company
511+
* [get](docs/sdks/apideckcompanies/README.md#get) - Get company
512+
* [update](docs/sdks/apideckcompanies/README.md#update) - Update company
513+
* [delete](docs/sdks/apideckcompanies/README.md#delete) - Delete company
487514

488515
### [Crm.Contacts](docs/sdks/contacts/README.md)
489516

@@ -618,13 +645,13 @@ public class Application {
618645
* [delete](docs/sdks/uploadsessions/README.md#delete) - Abort Upload Session
619646
* [finish](docs/sdks/uploadsessions/README.md#finish) - Finish Upload Session
620647

621-
### [Hris.Companies](docs/sdks/apideckcompanies/README.md)
648+
### [Hris.Companies](docs/sdks/apideckhriscompanies/README.md)
622649

623-
* [list](docs/sdks/apideckcompanies/README.md#list) - List Companies
624-
* [create](docs/sdks/apideckcompanies/README.md#create) - Create Company
625-
* [get](docs/sdks/apideckcompanies/README.md#get) - Get Company
626-
* [update](docs/sdks/apideckcompanies/README.md#update) - Update Company
627-
* [delete](docs/sdks/apideckcompanies/README.md#delete) - Delete Company
650+
* [list](docs/sdks/apideckhriscompanies/README.md#list) - List Companies
651+
* [create](docs/sdks/apideckhriscompanies/README.md#create) - Create Company
652+
* [get](docs/sdks/apideckhriscompanies/README.md#get) - Get Company
653+
* [update](docs/sdks/apideckhriscompanies/README.md#update) - Update Company
654+
* [delete](docs/sdks/apideckhriscompanies/README.md#delete) - Delete Company
628655

629656
### [Hris.Departments](docs/sdks/apideckdepartments/README.md)
630657

@@ -816,6 +843,7 @@ public class Application {
816843

817844
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
818845
.serviceId("salesforce")
846+
.companyId("12345")
819847
.filter(TaxRatesFilter.builder()
820848
.assets(true)
821849
.equity(true)
@@ -876,6 +904,7 @@ public class Application {
876904

877905
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
878906
.serviceId("salesforce")
907+
.companyId("12345")
879908
.filter(TaxRatesFilter.builder()
880909
.assets(true)
881910
.equity(true)
@@ -938,6 +967,7 @@ public class Application {
938967

939968
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
940969
.serviceId("salesforce")
970+
.companyId("12345")
941971
.filter(TaxRatesFilter.builder()
942972
.assets(true)
943973
.equity(true)
@@ -1008,6 +1038,7 @@ public class Application {
10081038

10091039
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
10101040
.serviceId("salesforce")
1041+
.companyId("12345")
10111042
.filter(TaxRatesFilter.builder()
10121043
.assets(true)
10131044
.equity(true)
@@ -1078,6 +1109,7 @@ public class Application {
10781109

10791110
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
10801111
.serviceId("salesforce")
1112+
.companyId("12345")
10811113
.filter(TaxRatesFilter.builder()
10821114
.assets(true)
10831115
.equity(true)
@@ -1153,7 +1185,7 @@ public class Application {
11531185
many more subclasses in the JDK platform).
11541186

11551187
**Inherit from [`ApideckError`](./src/main/java/models/errors/ApideckError.java)**:
1156-
* [`com.apideck.unify.models.errors.Unauthorized`](./src/main/java/models/errors/com.apideck.unify.models.errors.Unauthorized.java): Unauthorized. Status code `401`. Applicable to 6 of 325 methods.*
1188+
* [`com.apideck.unify.models.errors.Unauthorized`](./src/main/java/models/errors/com.apideck.unify.models.errors.Unauthorized.java): Unauthorized. Status code `401`. Applicable to 6 of 334 methods.*
11571189

11581190

11591191
</details>
@@ -1191,6 +1223,7 @@ public class Application {
11911223

11921224
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
11931225
.serviceId("salesforce")
1226+
.companyId("12345")
11941227
.filter(TaxRatesFilter.builder()
11951228
.assets(true)
11961229
.equity(true)
@@ -1357,6 +1390,7 @@ public class Application {
13571390

13581391
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
13591392
.serviceId("salesforce")
1393+
.companyId("12345")
13601394
.filter(TaxRatesFilter.builder()
13611395
.assets(true)
13621396
.equity(true)
@@ -1551,6 +1585,36 @@ __NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging
15511585
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
15521586
<!-- End Debugging [debug] -->
15531587

1588+
<!-- Start Jackson Configuration [jackson] -->
1589+
## Jackson Configuration
1590+
1591+
The SDK ships with a pre-configured Jackson [`ObjectMapper`][jackson-databind] accessible via
1592+
`JSON.getMapper()`. It is set up with type modules, strict deserializers, and the feature flags
1593+
needed for full SDK compatibility (including ISO-8601 `OffsetDateTime` serialization):
1594+
1595+
```java
1596+
import com.apideck.unify.utils.JSON;
1597+
1598+
String json = JSON.getMapper().writeValueAsString(response);
1599+
```
1600+
1601+
To compose with your own `ObjectMapper`, register the provided `UnifyJacksonModule`, which
1602+
bundles all the same modules and feature flags as a single plug-and-play module:
1603+
1604+
```java
1605+
import com.apideck.unify.utils.UnifyJacksonModule;
1606+
import com.fasterxml.jackson.databind.ObjectMapper;
1607+
1608+
ObjectMapper myMapper = new ObjectMapper()
1609+
.registerModule(new UnifyJacksonModule());
1610+
1611+
String json = myMapper.writeValueAsString(response);
1612+
```
1613+
1614+
[jackson-databind]: https://github.com/FasterXML/jackson-databind
1615+
[jackson-jsr310]: https://github.com/FasterXML/jackson-modules-java8/tree/master/datetime
1616+
<!-- End Jackson Configuration [jackson] -->
1617+
15541618
<!-- Placeholder for Future Speakeasy SDK Sections -->
15551619

15561620
# Development

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,4 +728,14 @@ Based on:
728728
### Generated
729729
- [java v0.30.4] .
730730
### Releases
731-
- [Maven Central v0.30.4] https://central.sonatype.com/artifact/com.apideck/unify/0.30.4 - .
731+
- [Maven Central v0.30.4] https://central.sonatype.com/artifact/com.apideck/unify/0.30.4 - .
732+
733+
## 2026-03-11 13:12:59
734+
### Changes
735+
Based on:
736+
- OpenAPI Doc
737+
- Speakeasy CLI 1.751.0 (2.858.2) https://github.com/speakeasy-api/speakeasy
738+
### Generated
739+
- [java v0.31.0] .
740+
### Releases
741+
- [Maven Central v0.31.0] https://central.sonatype.com/artifact/com.apideck/unify/0.31.0 - .

USAGE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class Application {
2222

2323
AccountingTaxRatesAllRequest req = AccountingTaxRatesAllRequest.builder()
2424
.serviceId("salesforce")
25+
.companyId("12345")
2526
.filter(TaxRatesFilter.builder()
2627
.assets(true)
2728
.equity(true)

docs/models/components/AccountStatus.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
The status of the account.
44

5+
## Example Usage
6+
7+
```java
8+
import com.apideck.unify.models.components.AccountStatus;
9+
10+
AccountStatus value = AccountStatus.ACTIVE;
11+
12+
// Open enum: use .of() to create instances from custom string values
13+
AccountStatus custom = AccountStatus.of("custom_value");
14+
```
15+
516

617
## Values
718

docs/models/components/AccountType.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
The type of bank account.
44

5+
## Example Usage
6+
7+
```java
8+
import com.apideck.unify.models.components.AccountType;
9+
10+
AccountType value = AccountType.BANK_ACCOUNT;
11+
12+
// Open enum: use .of() to create instances from custom string values
13+
AccountType custom = AccountType.of("custom_value");
14+
```
15+
516

617
## Values
718

docs/models/components/AccountingBankAccountAccountType.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
The type of bank account
44

5+
## Example Usage
6+
7+
```java
8+
import com.apideck.unify.models.components.AccountingBankAccountAccountType;
9+
10+
AccountingBankAccountAccountType value = AccountingBankAccountAccountType.CHECKING;
11+
12+
// Open enum: use .of() to create instances from custom string values
13+
AccountingBankAccountAccountType custom = AccountingBankAccountAccountType.of("custom_value");
14+
```
15+
516

617
## Values
718

0 commit comments

Comments
 (0)