Skip to content

Commit 21b2dac

Browse files
authored
Merge pull request #72 from codatio/speakeasy-sdk-regen-1732634784
chore: 🐝 Update SDK - Generate Bank Feeds library BANK-FEEDS-LIBRARY 2.0.0
2 parents 6e2c1f7 + 435eaec commit 21b2dac

File tree

65 files changed

+4594
-310
lines changed

Some content is hidden

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

65 files changed

+4594
-310
lines changed

.speakeasy/workflow.lock

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ sources:
99
- main
1010
bank-feeds-source:
1111
sourceNamespace: bank-feeds-source
12-
sourceRevisionDigest: sha256:a6479feafb8f4f49461fb9347578ab34619bcba818605cb5ab74f241dc1eb328
13-
sourceBlobDigest: sha256:a490b555d6f186cd37f72a06e06ba49293a0f371d145db2d9913d5081ecfc5a2
12+
sourceRevisionDigest: sha256:b03ce9653088911fcc62e4160ee189c580f351aa25dfe56b5d05f5a7b96f35aa
13+
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
1414
tags:
1515
- latest
16-
- main
16+
- speakeasy-sdk-regen-1732634784
17+
- 3.0.0
1718
banking-source:
1819
sourceNamespace: banking-source
1920
sourceRevisionDigest: sha256:ba6aa66d7b50ed4631adca7711ffdf2a76270842ca4be92413d92c5644116692
@@ -73,8 +74,10 @@ targets:
7374
bank-feeds-library:
7475
source: bank-feeds-source
7576
sourceNamespace: bank-feeds-source
76-
sourceRevisionDigest: sha256:a6479feafb8f4f49461fb9347578ab34619bcba818605cb5ab74f241dc1eb328
77-
sourceBlobDigest: sha256:a490b555d6f186cd37f72a06e06ba49293a0f371d145db2d9913d5081ecfc5a2
77+
sourceRevisionDigest: sha256:b03ce9653088911fcc62e4160ee189c580f351aa25dfe56b5d05f5a7b96f35aa
78+
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
79+
codeSamplesNamespace: bank-feeds-source-code-samples
80+
codeSamplesRevisionDigest: sha256:76973441342874ccd37043d74d4eb34f717f8ba1b646f565e53788b44b77fe1d
7881
banking-library:
7982
source: banking-source
8083
sourceNamespace: banking-source

bank-feeds/.speakeasy/gen.lock

Lines changed: 120 additions & 32 deletions
Large diffs are not rendered by default.

bank-feeds/.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: 1.0.0
15+
version: 2.0.0
1616
additionalDependencies: []
1717
additionalPlugins: []
1818
artifactID: bank-feeds
@@ -21,6 +21,7 @@ java:
2121
companyEmail: support@codat.io
2222
companyName: Codat
2323
companyURL: https://www.codat.io/
24+
defaultErrorName: SDKError
2425
description: Set up bank feeds from accounts in your application to supported accounting platforms.
2526
flattenGlobalSecurity: true
2627
githubURL: github.com/codatio/client-sdk-java/bank-feeds

bank-feeds/README.md

Lines changed: 14 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ The samples below show how a published SDK artifact is used:
5151

5252
Gradle:
5353
```groovy
54-
implementation 'io.codat:bank-feeds:1.0.0'
54+
implementation 'io.codat:bank-feeds:2.0.0'
5555
```
5656

5757
Maven:
5858
```xml
5959
<dependency>
6060
<groupId>io.codat</groupId>
6161
<artifactId>bank-feeds</artifactId>
62-
<version>1.0.0</version>
62+
<version>2.0.0</version>
6363
</dependency>
6464
```
6565

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

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

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

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

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

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

291294
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:
292295

293-
| Error Type | Status Code | Content Type |
294-
| --------------------------------- | --------------------------------- | --------------------------------- |
295-
| models/errors/ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
296-
| models/errors/SDKError | 4XX, 5XX | \*/\* |
296+
| Error Type | Status Code | Content Type |
297+
| -------------------------- | --------------------------------- | ---------------- |
298+
| models/errors/ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
299+
| models/errors/SDKError | 4XX, 5XX | \*/\* |
297300

298301
### Example
299302

@@ -334,54 +337,9 @@ public class Application {
334337
<!-- Start Server Selection [server] -->
335338
## Server Selection
336339

337-
### Select Server by Index
338-
339-
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:
340-
341-
| # | Server | Variables |
342-
| - | ------ | --------- |
343-
| 0 | `https://api.codat.io` | None |
344-
345-
#### Example
346-
347-
```java
348-
package hello.world;
349-
350-
import io.codat.bank_feeds.CodatBankFeeds;
351-
import io.codat.bank_feeds.models.components.CompanyRequestBody;
352-
import io.codat.bank_feeds.models.errors.ErrorMessage;
353-
import io.codat.bank_feeds.models.operations.CreateCompanyResponse;
354-
import java.lang.Exception;
355-
356-
public class Application {
357-
358-
public static void main(String[] args) throws ErrorMessage, Exception {
359-
360-
CodatBankFeeds sdk = CodatBankFeeds.builder()
361-
.serverIndex(0)
362-
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
363-
.build();
364-
365-
CompanyRequestBody req = CompanyRequestBody.builder()
366-
.name("Bank of Dave")
367-
.description("Requested early access to the new financing scheme.")
368-
.build();
369-
370-
CreateCompanyResponse res = sdk.companies().create()
371-
.request(req)
372-
.call();
373-
374-
if (res.company().isPresent()) {
375-
// handle response
376-
}
377-
}
378-
}
379-
```
380-
381-
382340
### Override Server URL Per-Client
383341

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

@@ -424,9 +382,9 @@ public class Application {
424382

425383
This SDK supports the following security scheme globally:
426384

427-
| Name | Type | Scheme |
428-
| ------------ | ------------ | ------------ |
429-
| `authHeader` | apiKey | API key |
385+
| Name | Type | Scheme |
386+
| ------------ | ------ | ------- |
387+
| `authHeader` | apiKey | API key |
430388

431389
To authenticate with the API the `authHeader` parameter must be set when initializing the SDK client instance. For example:
432390
```java

bank-feeds/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,14 @@ Based on:
2828
### Generated
2929
- [java v1.0.0] bank-feeds
3030
### Releases
31-
- [Maven Central v1.0.0] https://central.sonatype.com/artifact/io.codat/bank-feeds/1.0.0 - bank-feeds
31+
- [Maven Central v1.0.0] https://central.sonatype.com/artifact/io.codat/bank-feeds/1.0.0 - bank-feeds
32+
33+
## 2024-11-26 15:26:17
34+
### Changes
35+
Based on:
36+
- OpenAPI Doc
37+
- Speakeasy CLI 1.446.1 (2.462.1) https://github.com/speakeasy-api/speakeasy
38+
### Generated
39+
- [java v2.0.0] bank-feeds
40+
### Releases
41+
- [Maven Central v2.0.0] https://central.sonatype.com/artifact/io.codat/bank-feeds/2.0.0 - bank-feeds

bank-feeds/build.gradle

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

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

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

106106
from components.java
107107

@@ -145,10 +145,11 @@ if (!project.hasProperty('skip.signing')) {
145145
}
146146

147147
dependencies {
148+
api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2'
148149
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
149150
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2'
150151
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2'
151-
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
152+
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
152153
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
153154
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
154155
implementation 'commons-io:commons-io:2.15.1'

0 commit comments

Comments
 (0)