Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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
16 changes: 8 additions & 8 deletions 16 .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.448.0
speakeasyVersion: 1.455.5
sources:
accounting-source:
sourceNamespace: accounting-source
Expand All @@ -9,11 +9,11 @@ sources:
- main
bank-feeds-source:
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:b03ce9653088911fcc62e4160ee189c580f351aa25dfe56b5d05f5a7b96f35aa
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
sourceRevisionDigest: sha256:c8da9867e2243ea7063534e786f6af0377bf71302cf3527592959d11d6807ac9
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
tags:
- latest
- speakeasy-sdk-regen-1732634784
- speakeasy-sdk-regen-1734365257
- 3.0.0
banking-source:
sourceNamespace: banking-source
Expand Down Expand Up @@ -77,10 +77,10 @@ targets:
bank-feeds-library:
source: bank-feeds-source
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:b03ce9653088911fcc62e4160ee189c580f351aa25dfe56b5d05f5a7b96f35aa
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
codeSamplesNamespace: bank-feeds-source-code-samples
codeSamplesRevisionDigest: sha256:76973441342874ccd37043d74d4eb34f717f8ba1b646f565e53788b44b77fe1d
sourceRevisionDigest: sha256:c8da9867e2243ea7063534e786f6af0377bf71302cf3527592959d11d6807ac9
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
codeSamplesNamespace: bank-feeds-source-java-code-samples
codeSamplesRevisionDigest: sha256:1936534bff0c3a3c14d8c2b8babbdb0fa58e563c983ded79ae9417f5097e55fd
banking-library:
source: banking-source
sourceNamespace: banking-source
Expand Down
76 changes: 68 additions & 8 deletions 76 bank-feeds/.speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 2 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: 2.0.0
version: 3.0.0
additionalDependencies: []
additionalPlugins: []
artifactID: bank-feeds
Expand Down
80 changes: 54 additions & 26 deletions 80 bank-feeds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ A bank feed is a connection between a source bank account in your application an

<!-- Start Table of Contents [toc] -->
## Table of Contents
<!-- $toc-max-depth=2 -->
* [Endpoints](#endpoints)
* [SDK Installation](#sdk-installation)
* [Example Usage](#example-usage)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Retries](#retries)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Authentication](#authentication)

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

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

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

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

Expand Down Expand Up @@ -88,31 +91,56 @@ gradlew.bat publishToMavenLocal -Pskip.signing
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 io.codat.bank_feeds.models.components.CompanyReference;
import io.codat.bank_feeds.models.components.CompanyReferenceLinks;
import io.codat.bank_feeds.models.components.SourceAccount;
import io.codat.bank_feeds.models.components.SourceAccountWebhook;
import io.codat.bank_feeds.models.components.SourceAccountWebhookPayload;
import io.codat.bank_feeds.models.components.SourceAccountWebhookPayloadSourceAccount;
import io.codat.bank_feeds.models.components.Status;
import io.codat.bank_feeds.models.webhooks.BankFeedsSourceAccountConnectedResponse;
import java.lang.Exception;
import java.math.BigDecimal;

public class Application {

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

CodatBankFeeds sdk = CodatBankFeeds.builder()
.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.")
SourceAccountWebhook req = SourceAccountWebhook.builder()
.eventType("bankFeeds.sourceAccount.connected")
.generatedDate("2022-10-23T00:00:00Z")
.id("ba29118f-5406-4e59-b05c-ba307ca38d01")
.payload(SourceAccountWebhookPayload.builder()
.connectionId("2e9d2c44-f675-40ba-8049-353bfcb5e171")
.referenceCompany(CompanyReference.builder()
.description("Requested early access to the new financing scheme.")
.id("0498e921-9b53-4396-a412-4f2f5983b0a2")
.links(CompanyReferenceLinks.builder()
.portal("https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary")
.build())
.name("Toft stores")
.build())
.sourceAccount(SourceAccountWebhookPayloadSourceAccount.of(SourceAccount.builder()
.id("acc-002")
.accountName("account-081")
.accountNumber("12345678")
.balance(new BigDecimal("99.99"))
.currency("GBP")
.modifiedDate("2023-01-09T14:14:14.105Z")
.sortCode("040004")
.status(Status.PENDING)
.build()))
.build())
.build();

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

if (res.company().isPresent()) {
// handle response
}
// handle response
}
}
```
Expand Down Expand Up @@ -213,7 +241,7 @@ public class Application {
.build();

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

Expand Down Expand Up @@ -270,7 +298,7 @@ public class Application {
.build();

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

Expand Down Expand Up @@ -318,7 +346,7 @@ public class Application {
.build();

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

Expand Down Expand Up @@ -359,7 +387,7 @@ public class Application {
.build();

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

Expand Down Expand Up @@ -405,7 +433,7 @@ public class Application {
.build();

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

Expand Down
12 changes: 11 additions & 1 deletion 12 bank-feeds/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ Based on:
### 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
- [Maven Central v2.0.0] https://central.sonatype.com/artifact/io.codat/bank-feeds/2.0.0 - bank-feeds

## 2024-12-16 16:07:30
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.455.5 (2.479.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v3.0.0] bank-feeds
### Releases
- [Maven Central v3.0.0] https://central.sonatype.com/artifact/io.codat/bank-feeds/3.0.0 - bank-feeds
2 changes: 1 addition & 1 deletion 2 bank-feeds/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Application {
.build();

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

Expand Down
4 changes: 2 additions & 2 deletions 4 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 = "2.0.0"
version = "3.0.0"

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

from components.java

Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.