Skip to content

Commit 3a8eaef

Browse files
authored
Merge pull request #79 from codatio/speakeasy-sdk-regen-1734365257
chore: 🐝 Update SDK - Generate Bank Feeds library BANK-FEEDS-LIBRARY 3.0.0
2 parents 609267b + aa0804e commit 3a8eaef

Some content is hidden

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

43 files changed

+2577
-330
lines changed

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.448.0
1+
speakeasyVersion: 1.455.5
22
sources:
33
accounting-source:
44
sourceNamespace: accounting-source
@@ -9,11 +9,11 @@ sources:
99
- main
1010
bank-feeds-source:
1111
sourceNamespace: bank-feeds-source
12-
sourceRevisionDigest: sha256:b03ce9653088911fcc62e4160ee189c580f351aa25dfe56b5d05f5a7b96f35aa
13-
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
12+
sourceRevisionDigest: sha256:c8da9867e2243ea7063534e786f6af0377bf71302cf3527592959d11d6807ac9
13+
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
1414
tags:
1515
- latest
16-
- speakeasy-sdk-regen-1732634784
16+
- speakeasy-sdk-regen-1734365257
1717
- 3.0.0
1818
banking-source:
1919
sourceNamespace: banking-source
@@ -77,10 +77,10 @@ targets:
7777
bank-feeds-library:
7878
source: bank-feeds-source
7979
sourceNamespace: bank-feeds-source
80-
sourceRevisionDigest: sha256:b03ce9653088911fcc62e4160ee189c580f351aa25dfe56b5d05f5a7b96f35aa
81-
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
82-
codeSamplesNamespace: bank-feeds-source-code-samples
83-
codeSamplesRevisionDigest: sha256:76973441342874ccd37043d74d4eb34f717f8ba1b646f565e53788b44b77fe1d
80+
sourceRevisionDigest: sha256:c8da9867e2243ea7063534e786f6af0377bf71302cf3527592959d11d6807ac9
81+
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
82+
codeSamplesNamespace: bank-feeds-source-java-code-samples
83+
codeSamplesRevisionDigest: sha256:1936534bff0c3a3c14d8c2b8babbdb0fa58e563c983ded79ae9417f5097e55fd
8484
banking-library:
8585
source: banking-source
8686
sourceNamespace: banking-source

bank-feeds/.speakeasy/gen.lock

Lines changed: 68 additions & 8 deletions
Large diffs are not rendered by default.

bank-feeds/.speakeasy/gen.yaml

Lines changed: 1 addition & 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: bank-feeds

bank-feeds/README.md

Lines changed: 54 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,17 @@ A bank feed is a connection between a source bank account in your application an
3030

3131
<!-- Start Table of Contents [toc] -->
3232
## Table of Contents
33+
<!-- $toc-max-depth=2 -->
34+
* [Endpoints](#endpoints)
35+
* [SDK Installation](#sdk-installation)
36+
* [Example Usage](#example-usage)
37+
* [SDK Example Usage](#sdk-example-usage)
38+
* [Available Resources and Operations](#available-resources-and-operations)
39+
* [Retries](#retries)
40+
* [Error Handling](#error-handling)
41+
* [Server Selection](#server-selection)
42+
* [Authentication](#authentication)
3343

34-
* [SDK Installation](#sdk-installation)
35-
* [SDK Example Usage](#sdk-example-usage)
36-
* [Available Resources and Operations](#available-resources-and-operations)
37-
* [Retries](#retries)
38-
* [Error Handling](#error-handling)
39-
* [Server Selection](#server-selection)
40-
* [Authentication](#authentication)
4144
<!-- End Table of Contents [toc] -->
4245

4346
<!-- Start SDK Installation [installation] -->
@@ -51,15 +54,15 @@ The samples below show how a published SDK artifact is used:
5154

5255
Gradle:
5356
```groovy
54-
implementation 'io.codat:bank-feeds:2.0.0'
57+
implementation 'io.codat:bank-feeds:3.0.0'
5558
```
5659

5760
Maven:
5861
```xml
5962
<dependency>
6063
<groupId>io.codat</groupId>
6164
<artifactId>bank-feeds</artifactId>
62-
<version>2.0.0</version>
65+
<version>3.0.0</version>
6366
</dependency>
6467
```
6568

@@ -88,31 +91,56 @@ gradlew.bat publishToMavenLocal -Pskip.signing
8891
package hello.world;
8992

9093
import io.codat.bank_feeds.CodatBankFeeds;
91-
import io.codat.bank_feeds.models.components.CompanyRequestBody;
92-
import io.codat.bank_feeds.models.errors.ErrorMessage;
93-
import io.codat.bank_feeds.models.operations.CreateCompanyResponse;
94+
import io.codat.bank_feeds.models.components.CompanyReference;
95+
import io.codat.bank_feeds.models.components.CompanyReferenceLinks;
96+
import io.codat.bank_feeds.models.components.SourceAccount;
97+
import io.codat.bank_feeds.models.components.SourceAccountWebhook;
98+
import io.codat.bank_feeds.models.components.SourceAccountWebhookPayload;
99+
import io.codat.bank_feeds.models.components.SourceAccountWebhookPayloadSourceAccount;
100+
import io.codat.bank_feeds.models.components.Status;
101+
import io.codat.bank_feeds.models.webhooks.BankFeedsSourceAccountConnectedResponse;
94102
import java.lang.Exception;
103+
import java.math.BigDecimal;
95104

96105
public class Application {
97106

98-
public static void main(String[] args) throws ErrorMessage, Exception {
107+
public static void main(String[] args) throws Exception {
99108

100109
CodatBankFeeds sdk = CodatBankFeeds.builder()
101-
.authHeader("Basic BASE_64_ENCODED(API_KEY)")
102110
.build();
103111

104-
CompanyRequestBody req = CompanyRequestBody.builder()
105-
.name("Bank of Dave")
106-
.description("Requested early access to the new financing scheme.")
112+
SourceAccountWebhook req = SourceAccountWebhook.builder()
113+
.eventType("bankFeeds.sourceAccount.connected")
114+
.generatedDate("2022-10-23T00:00:00Z")
115+
.id("ba29118f-5406-4e59-b05c-ba307ca38d01")
116+
.payload(SourceAccountWebhookPayload.builder()
117+
.connectionId("2e9d2c44-f675-40ba-8049-353bfcb5e171")
118+
.referenceCompany(CompanyReference.builder()
119+
.description("Requested early access to the new financing scheme.")
120+
.id("0498e921-9b53-4396-a412-4f2f5983b0a2")
121+
.links(CompanyReferenceLinks.builder()
122+
.portal("https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary")
123+
.build())
124+
.name("Toft stores")
125+
.build())
126+
.sourceAccount(SourceAccountWebhookPayloadSourceAccount.of(SourceAccount.builder()
127+
.id("acc-002")
128+
.accountName("account-081")
129+
.accountNumber("12345678")
130+
.balance(new BigDecimal("99.99"))
131+
.currency("GBP")
132+
.modifiedDate("2023-01-09T14:14:14.105Z")
133+
.sortCode("040004")
134+
.status(Status.PENDING)
135+
.build()))
136+
.build())
107137
.build();
108138

109-
CreateCompanyResponse res = sdk.companies().create()
139+
BankFeedsSourceAccountConnectedResponse res = sdk.bankFeedsSourceAccountConnected()
110140
.request(req)
111141
.call();
112142

113-
if (res.company().isPresent()) {
114-
// handle response
115-
}
143+
// handle response
116144
}
117145
}
118146
```
@@ -213,7 +241,7 @@ public class Application {
213241
.build();
214242

215243
CompanyRequestBody req = CompanyRequestBody.builder()
216-
.name("Bank of Dave")
244+
.name("Technicalium")
217245
.description("Requested early access to the new financing scheme.")
218246
.build();
219247

@@ -270,7 +298,7 @@ public class Application {
270298
.build();
271299

272300
CompanyRequestBody req = CompanyRequestBody.builder()
273-
.name("Bank of Dave")
301+
.name("Technicalium")
274302
.description("Requested early access to the new financing scheme.")
275303
.build();
276304

@@ -318,7 +346,7 @@ public class Application {
318346
.build();
319347

320348
CompanyRequestBody req = CompanyRequestBody.builder()
321-
.name("Bank of Dave")
349+
.name("Technicalium")
322350
.description("Requested early access to the new financing scheme.")
323351
.build();
324352

@@ -359,7 +387,7 @@ public class Application {
359387
.build();
360388

361389
CompanyRequestBody req = CompanyRequestBody.builder()
362-
.name("Bank of Dave")
390+
.name("Technicalium")
363391
.description("Requested early access to the new financing scheme.")
364392
.build();
365393

@@ -405,7 +433,7 @@ public class Application {
405433
.build();
406434

407435
CompanyRequestBody req = CompanyRequestBody.builder()
408-
.name("Bank of Dave")
436+
.name("Technicalium")
409437
.description("Requested early access to the new financing scheme.")
410438
.build();
411439

bank-feeds/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] bank-feeds
4040
### Releases
41-
- [Maven Central v2.0.0] https://central.sonatype.com/artifact/io.codat/bank-feeds/2.0.0 - bank-feeds
41+
- [Maven Central v2.0.0] https://central.sonatype.com/artifact/io.codat/bank-feeds/2.0.0 - bank-feeds
42+
43+
## 2024-12-16 16:07:30
44+
### Changes
45+
Based on:
46+
- OpenAPI Doc
47+
- Speakeasy CLI 1.455.5 (2.479.3) https://github.com/speakeasy-api/speakeasy
48+
### Generated
49+
- [java v3.0.0] bank-feeds
50+
### Releases
51+
- [Maven Central v3.0.0] https://central.sonatype.com/artifact/io.codat/bank-feeds/3.0.0 - bank-feeds

bank-feeds/USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class Application {
1717
.build();
1818

1919
CompanyRequestBody req = CompanyRequestBody.builder()
20-
.name("Bank of Dave")
20+
.name("Technicalium")
2121
.description("Requested early access to the new financing scheme.")
2222
.build();
2323

bank-feeds/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 = "bank-feeds"
@@ -101,7 +101,7 @@ publishing {
101101
maven(MavenPublication) {
102102
groupId = 'io.codat'
103103
artifactId = 'bank-feeds'
104-
version = '2.0.0'
104+
version = '3.0.0'
105105

106106
from components.java
107107

0 commit comments

Comments
 (0)