-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from codatio/speakeasy-sdk-regen-1707228240
chore: 🐝 Update SDK - Generate Lending library
- Loading branch information
Showing
1,506 changed files
with
232,361 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# Linux start script should use lf | ||
/gradlew text eol=lf | ||
|
||
# These are Windows script files and should use crlf | ||
*.bat text eol=crlf | ||
|
||
# This allows generated code to be indexed correctly | ||
*.java linguist-generated=false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Ignore Gradle project-specific cache directory | ||
.gradle | ||
# Ignore Gradle build output directory | ||
build | ||
bin/ | ||
# Ignore IDE-specific configs | ||
.project | ||
.settings/ | ||
.DS_Store |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
|
||
## 2024-02-06 14:03:57 | ||
### Changes | ||
Based on: | ||
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml | ||
- Speakeasy CLI 1.167.4 (2.250.8) https://github.com/speakeasy-api/speakeasy | ||
### Generated | ||
- [java v0.1.0] lending | ||
### Releases | ||
- [Maven Central v0.1.0] https://central.sonatype.com/artifact/io.codat/lending/0.1.0 - lending |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!-- Start SDK Example Usage [usage] --> | ||
```java | ||
package hello.world; | ||
|
||
import io.codat.lending.CodatLending; | ||
import io.codat.lending.models.operations.*; | ||
import io.codat.lending.models.operations.CreateCompanyResponse; | ||
import io.codat.lending.models.shared.*; | ||
import io.codat.lending.models.shared.CompanyRequestBody; | ||
import io.codat.lending.models.shared.Items; | ||
import io.codat.lending.models.shared.Security; | ||
import java.time.LocalDate; | ||
import java.time.OffsetDateTime; | ||
import static java.util.Map.entry; | ||
|
||
public class Application { | ||
|
||
public static void main(String[] args) { | ||
try { | ||
CodatLending sdk = CodatLending.builder() | ||
.security(Security.builder() | ||
.authHeader("Basic BASE_64_ENCODED(API_KEY)") | ||
.build()) | ||
.build(); | ||
|
||
CompanyRequestBody req = CompanyRequestBody.builder() | ||
.name("Bank of Dave") | ||
.description("Requested early access to the new financing scheme.") | ||
.groups(java.util.List.of( | ||
Items.builder() | ||
.id("60d2fa12-8a04-11ee-b9d1-0242ac120002") | ||
.build())) | ||
.build(); | ||
|
||
CreateCompanyResponse res = sdk.companies().create() | ||
.request(req) | ||
.call(); | ||
|
||
if (res.company().isPresent()) { | ||
// handle response | ||
} | ||
|
||
} catch (io.codat.lending.models.errors.SDKError e) { | ||
// handle exception | ||
} catch (Exception e) { | ||
// handle exception | ||
} | ||
} | ||
} | ||
``` | ||
<!-- End SDK Example Usage [usage] --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# CreateAccountRequest | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | Example | | ||
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | ||
| `accountPrototype` | [Optional<? extends io.codat.lending.models.shared.AccountPrototype>](../../models/shared/AccountPrototype.md) | :heavy_minus_sign: | N/A | | | ||
| `allowSyncOnPushComplete` | *Optional<? extends Boolean>* | :heavy_minus_sign: | Allow a sync upon push completion. | | | ||
| `companyId` | *String* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | ||
| `connectionId` | *String* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | ||
| `timeoutInMinutes` | *Optional<? extends Integer>* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# CreateAccountResponse | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | | ||
| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `accountingCreateAccountResponse` | [Optional<? extends io.codat.lending.models.shared.AccountingCreateAccountResponse>](../../models/shared/AccountingCreateAccountResponse.md) | :heavy_minus_sign: | Success | | ||
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | ||
| `errorMessage` | [Optional<? extends io.codat.lending.models.shared.ErrorMessage>](../../models/shared/ErrorMessage.md) | :heavy_minus_sign: | The request made is not valid. | | ||
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | ||
| `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 | |
12 changes: 12 additions & 0 deletions
12
lending/docs/models/operations/CreateBankAccountRequest.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# CreateBankAccountRequest | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | Example | | ||
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | | ||
| `accountingBankAccount` | [JsonNullable<? extends io.codat.lending.models.shared.AccountingBankAccount>](../../models/shared/AccountingBankAccount.md) | :heavy_minus_sign: | N/A | | | ||
| `allowSyncOnPushComplete` | *Optional<? extends Boolean>* | :heavy_minus_sign: | Allow a sync upon push completion. | | | ||
| `companyId` | *String* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | ||
| `connectionId` | *String* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | | ||
| `timeoutInMinutes` | *Optional<? extends Integer>* | :heavy_minus_sign: | Time limit for the push operation to complete before it is timed out. | | |
12 changes: 12 additions & 0 deletions
12
lending/docs/models/operations/CreateBankAccountResponse.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# CreateBankAccountResponse | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | | ||
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `accountingCreateBankAccountResponse` | [Optional<? extends io.codat.lending.models.shared.AccountingCreateBankAccountResponse>](../../models/shared/AccountingCreateBankAccountResponse.md) | :heavy_minus_sign: | Success | | ||
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | ||
| `errorMessage` | [Optional<? extends io.codat.lending.models.shared.ErrorMessage>](../../models/shared/ErrorMessage.md) | :heavy_minus_sign: | The request made is not valid. | | ||
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | ||
| `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 | |
Oops, something went wrong.