Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ sources:
- main
bank-feeds-source:
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:a6479feafb8f4f49461fb9347578ab34619bcba818605cb5ab74f241dc1eb328
sourceBlobDigest: sha256:a490b555d6f186cd37f72a06e06ba49293a0f371d145db2d9913d5081ecfc5a2
sourceRevisionDigest: sha256:b03ce9653088911fcc62e4160ee189c580f351aa25dfe56b5d05f5a7b96f35aa
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
tags:
- latest
- main
- speakeasy-sdk-regen-1732634784
- 3.0.0
banking-source:
sourceNamespace: banking-source
sourceRevisionDigest: sha256:ba6aa66d7b50ed4631adca7711ffdf2a76270842ca4be92413d92c5644116692
Expand Down Expand Up @@ -73,8 +74,10 @@ targets:
bank-feeds-library:
source: bank-feeds-source
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:a6479feafb8f4f49461fb9347578ab34619bcba818605cb5ab74f241dc1eb328
sourceBlobDigest: sha256:a490b555d6f186cd37f72a06e06ba49293a0f371d145db2d9913d5081ecfc5a2
sourceRevisionDigest: sha256:b03ce9653088911fcc62e4160ee189c580f351aa25dfe56b5d05f5a7b96f35aa
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
codeSamplesNamespace: bank-feeds-source-code-samples
codeSamplesRevisionDigest: sha256:76973441342874ccd37043d74d4eb34f717f8ba1b646f565e53788b44b77fe1d
banking-library:
source: banking-source
sourceNamespace: banking-source
Expand Down
152 changes: 120 additions & 32 deletions bank-feeds/.speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion bank-feeds/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
oAuth2PasswordEnabled: false
telemetryEnabled: true
java:
version: 1.0.0
version: 2.0.0
additionalDependencies: []
additionalPlugins: []
artifactID: bank-feeds
Expand All @@ -21,6 +21,7 @@ java:
companyEmail: [email protected]
companyName: Codat
companyURL: https://www.codat.io/
defaultErrorName: SDKError
description: Set up bank feeds from accounts in your application to supported accounting platforms.
flattenGlobalSecurity: true
githubURL: github.com/codatio/client-sdk-java/bank-feeds
Expand Down
70 changes: 14 additions & 56 deletions bank-feeds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'io.codat:bank-feeds:1.0.0'
implementation 'io.codat:bank-feeds:2.0.0'
```

Maven:
```xml
<dependency>
<groupId>io.codat</groupId>
<artifactId>bank-feeds</artifactId>
<version>1.0.0</version>
<version>2.0.0</version>
</dependency>
```

Expand Down Expand Up @@ -141,6 +141,7 @@ public class Application {
* [create](docs/sdks/companies/README.md#create) - Create company
* [delete](docs/sdks/companies/README.md#delete) - Delete a company
* [get](docs/sdks/companies/README.md#get) - Get company
* [getAccessToken](docs/sdks/companies/README.md#getaccesstoken) - Get company access token
* [list](docs/sdks/companies/README.md#list) - List companies
* [update](docs/sdks/companies/README.md#update) - Update company

Expand All @@ -163,7 +164,8 @@ public class Application {

### [sourceAccounts()](docs/sdks/sourceaccounts/README.md)

* [create](docs/sdks/sourceaccounts/README.md#create) - Create source account
* [create](docs/sdks/sourceaccounts/README.md#create) - Create single source account
* [createBatch](docs/sdks/sourceaccounts/README.md#createbatch) - Create source accounts
* [delete](docs/sdks/sourceaccounts/README.md#delete) - Delete source account
* [deleteCredentials](docs/sdks/sourceaccounts/README.md#deletecredentials) - Delete all source account credentials
* [generateCredentials](docs/sdks/sourceaccounts/README.md#generatecredentials) - Generate source account credentials
Expand All @@ -177,6 +179,7 @@ public class Application {
### [transactions()](docs/sdks/transactions/README.md)

* [create](docs/sdks/transactions/README.md#create) - Create bank transactions
* [getCreateModel](docs/sdks/transactions/README.md#getcreatemodel) - Get create bank transactions model
* [getCreateOperation](docs/sdks/transactions/README.md#getcreateoperation) - Get create operation
* [listCreateOperations](docs/sdks/transactions/README.md#listcreateoperations) - List create operations

Expand Down Expand Up @@ -290,10 +293,10 @@ Handling errors in this SDK should largely match your expectations. All operatio

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:

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

### Example

Expand Down Expand Up @@ -334,54 +337,9 @@ public class Application {
<!-- Start Server Selection [server] -->
## Server Selection

### Select Server by Index

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:

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://api.codat.io` | None |

#### Example

```java
package hello.world;

import io.codat.bank_feeds.CodatBankFeeds;
import io.codat.bank_feeds.models.components.CompanyRequestBody;
import io.codat.bank_feeds.models.errors.ErrorMessage;
import io.codat.bank_feeds.models.operations.CreateCompanyResponse;
import java.lang.Exception;

public class Application {

public static void main(String[] args) throws ErrorMessage, Exception {

CodatBankFeeds sdk = CodatBankFeeds.builder()
.serverIndex(0)
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
.build();

CompanyRequestBody req = CompanyRequestBody.builder()
.name("Bank of Dave")
.description("Requested early access to the new financing scheme.")
.build();

CreateCompanyResponse res = sdk.companies().create()
.request(req)
.call();

if (res.company().isPresent()) {
// handle response
}
}
}
```


### Override Server URL Per-Client

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

Expand Down Expand Up @@ -424,9 +382,9 @@ public class Application {

This SDK supports the following security scheme globally:

| Name | Type | Scheme |
| ------------ | ------------ | ------------ |
| `authHeader` | apiKey | API key |
| Name | Type | Scheme |
| ------------ | ------ | ------- |
| `authHeader` | apiKey | API key |

To authenticate with the API the `authHeader` parameter must be set when initializing the SDK client instance. For example:
```java
Expand Down
12 changes: 11 additions & 1 deletion bank-feeds/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,14 @@ Based on:
### Generated
- [java v1.0.0] bank-feeds
### Releases
- [Maven Central v1.0.0] https://central.sonatype.com/artifact/io.codat/bank-feeds/1.0.0 - bank-feeds
- [Maven Central v1.0.0] https://central.sonatype.com/artifact/io.codat/bank-feeds/1.0.0 - bank-feeds

## 2024-11-26 15:26:17
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.446.1 (2.462.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.0.0] bank-feeds
### Releases
- [Maven Central v2.0.0] https://central.sonatype.com/artifact/io.codat/bank-feeds/2.0.0 - bank-feeds
7 changes: 4 additions & 3 deletions bank-feeds/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
}

group = "io.codat"
version = "1.0.0"
version = "2.0.0"

sourcesJar {
archiveBaseName = "bank-feeds"
Expand Down Expand Up @@ -101,7 +101,7 @@ publishing {
maven(MavenPublication) {
groupId = 'io.codat'
artifactId = 'bank-feeds'
version = '1.0.0'
version = '2.0.0'

from components.java

Expand Down Expand Up @@ -145,10 +145,11 @@ if (!project.hasProperty('skip.signing')) {
}

dependencies {
api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2'
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
implementation 'commons-io:commons-io:2.15.1'
Expand Down
Loading