Skip to content

Commit c82eccc

Browse files
authored
Merge pull request #69 from codatio/speakeasy-sdk-regen-1731929475
chore: 🐝 Update SDK - Generate Lending library LENDING-LIBRARY 3.0.0
2 parents 7def9b8 + 4ae6893 commit c82eccc

35 files changed

+604
-478
lines changed

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.431.0
1+
speakeasyVersion: 1.440.1
22
sources:
33
accounting-source:
44
sourceNamespace: accounting-source
@@ -23,11 +23,11 @@ sources:
2323
- main
2424
lending-source:
2525
sourceNamespace: lending-source
26-
sourceRevisionDigest: sha256:3115e288193f90d9d2d5aa3b4704c54f977707cd1599e7c49f32425b53c43dc1
27-
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
26+
sourceRevisionDigest: sha256:5a8f78f55041d1add3c28c608bfa608192a2ea121ee8f76fa2b63ee0df812be0
27+
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
2828
tags:
2929
- latest
30-
- main
30+
- speakeasy-sdk-regen-1731929475
3131
platform-source:
3232
sourceNamespace: platform-source
3333
sourceRevisionDigest: sha256:72cd66e3c9aad049e4d7c5256b5c5c943048b664f118b3e9a50f38c7361adffb
@@ -82,8 +82,10 @@ targets:
8282
lending-library:
8383
source: lending-source
8484
sourceNamespace: lending-source
85-
sourceRevisionDigest: sha256:3115e288193f90d9d2d5aa3b4704c54f977707cd1599e7c49f32425b53c43dc1
86-
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
85+
sourceRevisionDigest: sha256:5a8f78f55041d1add3c28c608bfa608192a2ea121ee8f76fa2b63ee0df812be0
86+
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
87+
codeSamplesNamespace: lending-source-code-samples
88+
codeSamplesRevisionDigest: sha256:ef8621b10a4d23ed63b9403e8125aedb700dc5e22c05376cd90debf7bbc40382
8789
platform-library:
8890
source: platform-source
8991
sourceNamespace: platform-source

β€Žlending/.speakeasy/gen.lockβ€Ž

Lines changed: 54 additions & 39 deletions
Large diffs are not rendered by default.

β€Žlending/.speakeasy/gen.yamlβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
oAuth2PasswordEnabled: false
1313
telemetryEnabled: true
1414
java:
15-
version: 2.0.0
15+
version: 3.0.0
1616
additionalDependencies: []
1717
additionalPlugins: []
1818
artifactID: lending
@@ -21,6 +21,7 @@ java:
2121
companyEmail: support@codat.io
2222
companyName: Codat
2323
companyURL: https://www.codat.io/
24+
defaultErrorName: SDKError
2425
description: Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.
2526
flattenGlobalSecurity: false
2627
githubURL: github.com/codatio/client-sdk-java/lending

β€Žlending/README.mdβ€Ž

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

6060
Gradle:
6161
```groovy
62-
implementation 'io.codat:lending:2.0.0'
62+
implementation 'io.codat:lending:3.0.0'
6363
```
6464

6565
Maven:
6666
```xml
6767
<dependency>
6868
<groupId>io.codat</groupId>
6969
<artifactId>lending</artifactId>
70-
<version>2.0.0</version>
70+
<version>3.0.0</version>
7171
</dependency>
7272
```
7373

@@ -595,10 +595,10 @@ Handling errors in this SDK should largely match your expectations. All operatio
595595

596596
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 `create` method throws the following exceptions:
597597

598-
| Error Type | Status Code | Content Type |
599-
| --------------------------------- | --------------------------------- | --------------------------------- |
600-
| models/errors/ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
601-
| models/errors/SDKError | 4XX, 5XX | \*/\* |
598+
| Error Type | Status Code | Content Type |
599+
| -------------------------- | --------------------------------- | ---------------- |
600+
| models/errors/ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
601+
| models/errors/SDKError | 4XX, 5XX | \*/\* |
602602

603603
### Example
604604

@@ -642,57 +642,9 @@ public class Application {
642642
<!-- Start Server Selection [server] -->
643643
## Server Selection
644644

645-
### Select Server by Index
646-
647-
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:
648-
649-
| # | Server | Variables |
650-
| - | ------ | --------- |
651-
| 0 | `https://api.codat.io` | None |
652-
653-
#### Example
654-
655-
```java
656-
package hello.world;
657-
658-
import io.codat.lending.CodatLending;
659-
import io.codat.lending.models.errors.ErrorMessage;
660-
import io.codat.lending.models.operations.CreateCompanyResponse;
661-
import io.codat.lending.models.shared.CompanyRequestBody;
662-
import io.codat.lending.models.shared.Security;
663-
import java.lang.Exception;
664-
665-
public class Application {
666-
667-
public static void main(String[] args) throws ErrorMessage, Exception {
668-
669-
CodatLending sdk = CodatLending.builder()
670-
.serverIndex(0)
671-
.security(Security.builder()
672-
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
673-
.build())
674-
.build();
675-
676-
CompanyRequestBody req = CompanyRequestBody.builder()
677-
.name("Bank of Dave")
678-
.description("Requested early access to the new financing scheme.")
679-
.build();
680-
681-
CreateCompanyResponse res = sdk.companies().create()
682-
.request(req)
683-
.call();
684-
685-
if (res.company().isPresent()) {
686-
// handle response
687-
}
688-
}
689-
}
690-
```
691-
692-
693645
### Override Server URL Per-Client
694646

695-
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:
647+
The default server can also be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example:
696648
```java
697649
package hello.world;
698650

@@ -738,9 +690,9 @@ public class Application {
738690

739691
This SDK supports the following security scheme globally:
740692

741-
| Name | Type | Scheme |
742-
| ------------ | ------------ | ------------ |
743-
| `authHeader` | apiKey | API key |
693+
| Name | Type | Scheme |
694+
| ------------ | ------ | ------- |
695+
| `authHeader` | apiKey | API key |
744696

745697
You can set the security parameters through the `security` builder method when initializing the SDK client instance. For example:
746698
```java

β€Žlending/RELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,14 @@ Based on:
3838
### Generated
3939
- [java v2.0.0] lending
4040
### Releases
41-
- [Maven Central v2.0.0] https://central.sonatype.com/artifact/io.codat/lending/2.0.0 - lending
41+
- [Maven Central v2.0.0] https://central.sonatype.com/artifact/io.codat/lending/2.0.0 - lending
42+
43+
## 2024-11-18 11:31:08
44+
### Changes
45+
Based on:
46+
- OpenAPI Doc
47+
- Speakeasy CLI 1.440.1 (2.460.1) https://github.com/speakeasy-api/speakeasy
48+
### Generated
49+
- [java v3.0.0] lending
50+
### Releases
51+
- [Maven Central v3.0.0] https://central.sonatype.com/artifact/io.codat/lending/3.0.0 - lending

β€Žlending/build.gradleβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
6363
}
6464

6565
group = "io.codat"
66-
version = "2.0.0"
66+
version = "3.0.0"
6767

6868
sourcesJar {
6969
archiveBaseName = "lending"
@@ -101,7 +101,7 @@ publishing {
101101
maven(MavenPublication) {
102102
groupId = 'io.codat'
103103
artifactId = 'lending'
104-
version = '2.0.0'
104+
version = '3.0.0'
105105

106106
from components.java
107107

β€Žlending/docs/models/shared/AccountingBillCreditNote.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žlending/docs/models/shared/AccountingCreateTransferResponseAccountingTransfer.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lending/docs/models/shared/RecordRef.md renamed to lending/docs/models/shared/AccountingRecordRef.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RecordRef
1+
# AccountingRecordRef
22

33
Links the current record to the underlying record or data type that created it.
44

β€Žlending/docs/models/shared/AccountingTransfer.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
Β (0)