Skip to content

Commit 2a32514

Browse files
authored
Merge pull request #8 from codatio/speakeasy-sdk-regen-1707228240
chore: 🐝 Update SDK - Generate Lending library
2 parents d0a6b47 + 4d676ea commit 2a32514

File tree

1,506 files changed

+232361
-24
lines changed

Some content is hidden

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

1,506 files changed

+232361
-24
lines changed

lending/.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+
10+
# This allows generated code to be indexed correctly
11+
*.java linguist-generated=false
12+

lending/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Ignore Gradle project-specific cache directory
2+
.gradle
3+
# Ignore Gradle build output directory
4+
build
5+
bin/
6+
# Ignore IDE-specific configs
7+
.project
8+
.settings/
9+
.DS_Store

lending/.speakeasy/gen.lock

Lines changed: 1526 additions & 0 deletions
Large diffs are not rendered by default.

lending/README.md

Lines changed: 627 additions & 9 deletions
Large diffs are not rendered by default.

lending/RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
## 2024-02-06 14:03:57
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml
7+
- Speakeasy CLI 1.167.4 (2.250.8) https://github.com/speakeasy-api/speakeasy
8+
### Generated
9+
- [java v0.1.0] lending
10+
### Releases
11+
- [Maven Central v0.1.0] https://central.sonatype.com/artifact/io.codat/lending/0.1.0 - lending

lending/USAGE.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!-- Start SDK Example Usage [usage] -->
2+
```java
3+
package hello.world;
4+
5+
import io.codat.lending.CodatLending;
6+
import io.codat.lending.models.operations.*;
7+
import io.codat.lending.models.operations.CreateCompanyResponse;
8+
import io.codat.lending.models.shared.*;
9+
import io.codat.lending.models.shared.CompanyRequestBody;
10+
import io.codat.lending.models.shared.Items;
11+
import io.codat.lending.models.shared.Security;
12+
import java.time.LocalDate;
13+
import java.time.OffsetDateTime;
14+
import static java.util.Map.entry;
15+
16+
public class Application {
17+
18+
public static void main(String[] args) {
19+
try {
20+
CodatLending sdk = CodatLending.builder()
21+
.security(Security.builder()
22+
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
23+
.build())
24+
.build();
25+
26+
CompanyRequestBody req = CompanyRequestBody.builder()
27+
.name("Bank of Dave")
28+
.description("Requested early access to the new financing scheme.")
29+
.groups(java.util.List.of(
30+
Items.builder()
31+
.id("60d2fa12-8a04-11ee-b9d1-0242ac120002")
32+
.build()))
33+
.build();
34+
35+
CreateCompanyResponse res = sdk.companies().create()
36+
.request(req)
37+
.call();
38+
39+
if (res.company().isPresent()) {
40+
// handle response
41+
}
42+
43+
} catch (io.codat.lending.models.errors.SDKError e) {
44+
// handle exception
45+
} catch (Exception e) {
46+
// handle exception
47+
}
48+
}
49+
}
50+
```
51+
<!-- End SDK Example Usage [usage] -->
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateAccountRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
8+
| `accountPrototype` | [Optional<? extends io.codat.lending.models.shared.AccountPrototype>](../../models/shared/AccountPrototype.md) | :heavy_minus_sign: | N/A | |
9+
| `allowSyncOnPushComplete` | *Optional<? extends Boolean>* | :heavy_minus_sign: | Allow a sync upon push completion. | |
10+
| `companyId` | *String* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
11+
| `connectionId` | *String* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
12+
| `timeoutInMinutes` | *Optional<? extends Integer>* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateAccountResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `accountingCreateAccountResponse` | [Optional<? extends io.codat.lending.models.shared.AccountingCreateAccountResponse>](../../models/shared/AccountingCreateAccountResponse.md) | :heavy_minus_sign: | Success |
9+
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
10+
| `errorMessage` | [Optional<? extends io.codat.lending.models.shared.ErrorMessage>](../../models/shared/ErrorMessage.md) | :heavy_minus_sign: | The request made is not valid. |
11+
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
12+
| `rawResponse` | [HttpResponse<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateBankAccountRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
8+
| `accountingBankAccount` | [JsonNullable<? extends io.codat.lending.models.shared.AccountingBankAccount>](../../models/shared/AccountingBankAccount.md) | :heavy_minus_sign: | N/A | |
9+
| `allowSyncOnPushComplete` | *Optional<? extends Boolean>* | :heavy_minus_sign: | Allow a sync upon push completion. | |
10+
| `companyId` | *String* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
11+
| `connectionId` | *String* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
12+
| `timeoutInMinutes` | *Optional<? extends Integer>* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateBankAccountResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `accountingCreateBankAccountResponse` | [Optional<? extends io.codat.lending.models.shared.AccountingCreateBankAccountResponse>](../../models/shared/AccountingCreateBankAccountResponse.md) | :heavy_minus_sign: | Success |
9+
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
10+
| `errorMessage` | [Optional<? extends io.codat.lending.models.shared.ErrorMessage>](../../models/shared/ErrorMessage.md) | :heavy_minus_sign: | The request made is not valid. |
11+
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
12+
| `rawResponse` | [HttpResponse<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |

0 commit comments

Comments
 (0)