Skip to content

Commit fed162f

Browse files
authored
Merge pull request #580 from codatio/speakeasy-sdk-regen-1734365209
chore: 🐝 Update SDK - Generate Bank Feeds library BANK-FEEDS-LIBRARY 8.0.0
2 parents e648fca + 7c88282 commit fed162f

84 files changed

Lines changed: 1153 additions & 397 deletions

File tree

Some content is hidden

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

.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
@@ -16,11 +16,11 @@ sources:
1616
- main
1717
bank-feeds-source:
1818
sourceNamespace: bank-feeds-source
19-
sourceRevisionDigest: sha256:3f6eca31ed42017e87f8b7b80dc78dcad56cd815f794ae4da3903cfcfd4127bb
20-
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
19+
sourceRevisionDigest: sha256:c0d04a5372e15ca034121e9289a68320f22da0d2c3979dcd98eb4de3455accdc
20+
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
2121
tags:
2222
- latest
23-
- speakeasy-sdk-regen-1732634660
23+
- speakeasy-sdk-regen-1734365209
2424
- 3.0.0
2525
banking-source:
2626
sourceNamespace: banking-source
@@ -132,10 +132,10 @@ targets:
132132
bank-feeds-library:
133133
source: bank-feeds-source
134134
sourceNamespace: bank-feeds-source
135-
sourceRevisionDigest: sha256:3f6eca31ed42017e87f8b7b80dc78dcad56cd815f794ae4da3903cfcfd4127bb
136-
sourceBlobDigest: sha256:b5233f0bab180b8aae271a0d5ab149316931ec9e84a140e1c073a2025305eb7d
137-
codeSamplesNamespace: bank-feeds-source-code-samples
138-
codeSamplesRevisionDigest: sha256:9eb69d3039e220032803399e96da8452398a4d8d7ab3b1359d0da54cffccee42
135+
sourceRevisionDigest: sha256:c0d04a5372e15ca034121e9289a68320f22da0d2c3979dcd98eb4de3455accdc
136+
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
137+
codeSamplesNamespace: bank-feeds-source-go-code-samples
138+
codeSamplesRevisionDigest: sha256:1173428ff1074ed5cf5934173d1aefb259db103bc546bacd9add38a4d502e055
139139
banking-library:
140140
source: banking-source
141141
sourceNamespace: banking-source

bank-feeds/.speakeasy/gen.lock

Lines changed: 66 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
go:
15-
version: 7.0.0
15+
version: 8.0.0
1616
additionalDependencies: {}
1717
allowUnknownFieldsInWeakUnions: false
1818
clientServerStatusCodesAsErrors: true

bank-feeds/README.md

Lines changed: 69 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,19 @@ 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+
* [Bank Feeds](#bank-feeds)
35+
* [Endpoints](#endpoints)
36+
* [SDK Installation](#sdk-installation)
37+
* [Example Usage](#example-usage)
38+
* [SDK Example Usage](#sdk-example-usage)
39+
* [Available Resources and Operations](#available-resources-and-operations)
40+
* [Retries](#retries)
41+
* [Error Handling](#error-handling)
42+
* [Server Selection](#server-selection)
43+
* [Custom HTTP Client](#custom-http-client)
44+
* [Authentication](#authentication)
3345

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-
* [Custom HTTP Client](#custom-http-client)
41-
* [Authentication](#authentication)
4246
<!-- End Table of Contents [toc] -->
4347

4448
<!-- Start SDK Installation [installation] -->
@@ -61,27 +65,49 @@ package main
6165

6266
import (
6367
"context"
64-
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v7"
65-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/shared"
68+
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v8"
69+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/shared"
70+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/types"
6671
"log"
6772
)
6873

6974
func main() {
70-
s := bankfeeds.New(
71-
bankfeeds.WithSecurity(shared.Security{
72-
AuthHeader: "Basic BASE_64_ENCODED(API_KEY)",
73-
}),
74-
)
75-
7675
ctx := context.Background()
77-
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
78-
Description: bankfeeds.String("Requested early access to the new financing scheme."),
79-
Name: "Technicalium",
76+
77+
s := bankfeeds.New()
78+
79+
res, err := s.BankFeedsSourceAccountConnected(ctx, &shared.SourceAccountWebhook{
80+
EventType: bankfeeds.String("bankFeeds.sourceAccount.connected"),
81+
GeneratedDate: bankfeeds.String("2022-10-23T00:00:00Z"),
82+
ID: bankfeeds.String("ba29118f-5406-4e59-b05c-ba307ca38d01"),
83+
Payload: &shared.SourceAccountWebhookPayload{
84+
ConnectionID: bankfeeds.String("2e9d2c44-f675-40ba-8049-353bfcb5e171"),
85+
ReferenceCompany: &shared.CompanyReference{
86+
Description: bankfeeds.String("Requested early access to the new financing scheme."),
87+
ID: bankfeeds.String("0498e921-9b53-4396-a412-4f2f5983b0a2"),
88+
Links: &shared.CompanyReferenceLinks{
89+
Portal: bankfeeds.String("https://app.codat.io/companies/0498e921-9b53-4396-a412-4f2f5983b0a2/summary"),
90+
},
91+
Name: bankfeeds.String("Toft stores"),
92+
},
93+
SourceAccount: bankfeeds.Pointer(shared.CreateSourceAccountWebhookPayloadSourceAccountSourceAccount(
94+
shared.SourceAccount{
95+
AccountName: bankfeeds.String("account-081"),
96+
AccountNumber: bankfeeds.String("12345678"),
97+
Balance: types.MustNewDecimalFromString("99.99"),
98+
Currency: bankfeeds.String("GBP"),
99+
ID: "acc-002",
100+
ModifiedDate: bankfeeds.String("2023-01-09T14:14:14.105Z"),
101+
SortCode: bankfeeds.String("040004"),
102+
Status: shared.StatusPending.ToPointer(),
103+
},
104+
)),
105+
},
80106
})
81107
if err != nil {
82108
log.Fatal(err)
83109
}
84-
if res.Company != nil {
110+
if res != nil {
85111
// handle response
86112
}
87113
}
@@ -174,21 +200,22 @@ package main
174200

175201
import (
176202
"context"
177-
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v7"
178-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/shared"
179-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/retry"
203+
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v8"
204+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/shared"
205+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/retry"
180206
"log"
181207
"pkg/models/operations"
182208
)
183209

184210
func main() {
211+
ctx := context.Background()
212+
185213
s := bankfeeds.New(
186214
bankfeeds.WithSecurity(shared.Security{
187215
AuthHeader: "Basic BASE_64_ENCODED(API_KEY)",
188216
}),
189217
)
190218

191-
ctx := context.Background()
192219
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
193220
Description: bankfeeds.String("Requested early access to the new financing scheme."),
194221
Name: "Technicalium",
@@ -219,13 +246,15 @@ package main
219246

220247
import (
221248
"context"
222-
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v7"
223-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/shared"
224-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/retry"
249+
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v8"
250+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/shared"
251+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/retry"
225252
"log"
226253
)
227254

228255
func main() {
256+
ctx := context.Background()
257+
229258
s := bankfeeds.New(
230259
bankfeeds.WithRetryConfig(
231260
retry.Config{
@@ -243,7 +272,6 @@ func main() {
243272
}),
244273
)
245274

246-
ctx := context.Background()
247275
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
248276
Description: bankfeeds.String("Requested early access to the new financing scheme."),
249277
Name: "Technicalium",
@@ -283,20 +311,21 @@ package main
283311
import (
284312
"context"
285313
"errors"
286-
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v7"
287-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/sdkerrors"
288-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/shared"
314+
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v8"
315+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/sdkerrors"
316+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/shared"
289317
"log"
290318
)
291319

292320
func main() {
321+
ctx := context.Background()
322+
293323
s := bankfeeds.New(
294324
bankfeeds.WithSecurity(shared.Security{
295325
AuthHeader: "Basic BASE_64_ENCODED(API_KEY)",
296326
}),
297327
)
298328

299-
ctx := context.Background()
300329
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
301330
Description: bankfeeds.String("Requested early access to the new financing scheme."),
302331
Name: "Technicalium",
@@ -333,20 +362,21 @@ package main
333362

334363
import (
335364
"context"
336-
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v7"
337-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/shared"
365+
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v8"
366+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/shared"
338367
"log"
339368
)
340369

341370
func main() {
371+
ctx := context.Background()
372+
342373
s := bankfeeds.New(
343374
bankfeeds.WithServerURL("https://api.codat.io"),
344375
bankfeeds.WithSecurity(shared.Security{
345376
AuthHeader: "Basic BASE_64_ENCODED(API_KEY)",
346377
}),
347378
)
348379

349-
ctx := context.Background()
350380
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
351381
Description: bankfeeds.String("Requested early access to the new financing scheme."),
352382
Name: "Technicalium",
@@ -412,19 +442,20 @@ package main
412442

413443
import (
414444
"context"
415-
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v7"
416-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/shared"
445+
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v8"
446+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/shared"
417447
"log"
418448
)
419449

420450
func main() {
451+
ctx := context.Background()
452+
421453
s := bankfeeds.New(
422454
bankfeeds.WithSecurity(shared.Security{
423455
AuthHeader: "Basic BASE_64_ENCODED(API_KEY)",
424456
}),
425457
)
426458

427-
ctx := context.Background()
428459
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
429460
Description: bankfeeds.String("Requested early access to the new financing scheme."),
430461
Name: "Technicalium",

bank-feeds/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,4 +490,14 @@ Based on:
490490
### Generated
491491
- [go v7.0.0] bank-feeds
492492
### Releases
493-
- [Go v7.0.0] https://github.com/codatio/client-sdk-go/releases/tag/bank-feeds/v7.0.0 - bank-feeds
493+
- [Go v7.0.0] https://github.com/codatio/client-sdk-go/releases/tag/bank-feeds/v7.0.0 - bank-feeds
494+
495+
## 2024-12-16 16:06:42
496+
### Changes
497+
Based on:
498+
- OpenAPI Doc
499+
- Speakeasy CLI 1.455.5 (2.479.3) https://github.com/speakeasy-api/speakeasy
500+
### Generated
501+
- [go v8.0.0] bank-feeds
502+
### Releases
503+
- [Go v8.0.0] https://github.com/codatio/client-sdk-go/releases/tag/bank-feeds/v8.0.0 - bank-feeds

bank-feeds/USAGE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@ package main
44

55
import (
66
"context"
7-
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v7"
8-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/shared"
7+
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v8"
8+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/shared"
99
"log"
1010
)
1111

1212
func main() {
13+
ctx := context.Background()
14+
1315
s := bankfeeds.New(
1416
bankfeeds.WithSecurity(shared.Security{
1517
AuthHeader: "Basic BASE_64_ENCODED(API_KEY)",
1618
}),
1719
)
1820

19-
ctx := context.Background()
2021
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
2122
Description: bankfeeds.String("Requested early access to the new financing scheme."),
2223
Name: "Technicalium",

bank-feeds/accountmapping.go

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import (
66
"bytes"
77
"context"
88
"fmt"
9-
"github.com/codatio/client-sdk-go/bank-feeds/v7/internal/hooks"
10-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/operations"
11-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/sdkerrors"
12-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/shared"
13-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/retry"
14-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/utils"
9+
"github.com/codatio/client-sdk-go/bank-feeds/v8/internal/hooks"
10+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/operations"
11+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/sdkerrors"
12+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/shared"
13+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/retry"
14+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/utils"
1515
"net/http"
1616
)
1717

@@ -111,6 +111,10 @@ func (s *AccountMapping) Create(ctx context.Context, request operations.CreateBa
111111
return nil, err
112112
}
113113

114+
for k, v := range o.SetHeaders {
115+
req.Header.Set(k, v)
116+
}
117+
114118
globalRetryConfig := s.sdkConfiguration.RetryConfig
115119
retryConfig := o.Retries
116120
if retryConfig == nil {
@@ -347,6 +351,10 @@ func (s *AccountMapping) Get(ctx context.Context, request operations.GetBankAcco
347351
return nil, err
348352
}
349353

354+
for k, v := range o.SetHeaders {
355+
req.Header.Set(k, v)
356+
}
357+
350358
globalRetryConfig := s.sdkConfiguration.RetryConfig
351359
retryConfig := o.Retries
352360
if retryConfig == nil {

bank-feeds/bankaccounts.go

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import (
66
"bytes"
77
"context"
88
"fmt"
9-
"github.com/codatio/client-sdk-go/bank-feeds/v7/internal/hooks"
10-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/operations"
11-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/sdkerrors"
12-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/models/shared"
13-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/retry"
14-
"github.com/codatio/client-sdk-go/bank-feeds/v7/pkg/utils"
9+
"github.com/codatio/client-sdk-go/bank-feeds/v8/internal/hooks"
10+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/operations"
11+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/sdkerrors"
12+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/models/shared"
13+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/retry"
14+
"github.com/codatio/client-sdk-go/bank-feeds/v8/pkg/utils"
1515
"net/http"
1616
)
1717

@@ -92,6 +92,10 @@ func (s *BankAccounts) Create(ctx context.Context, request operations.CreateBank
9292
return nil, err
9393
}
9494

95+
for k, v := range o.SetHeaders {
96+
req.Header.Set(k, v)
97+
}
98+
9599
globalRetryConfig := s.sdkConfiguration.RetryConfig
96100
retryConfig := o.Retries
97101
if retryConfig == nil {
@@ -328,6 +332,10 @@ func (s *BankAccounts) GetCreateModel(ctx context.Context, request operations.Ge
328332
return nil, err
329333
}
330334

335+
for k, v := range o.SetHeaders {
336+
req.Header.Set(k, v)
337+
}
338+
331339
globalRetryConfig := s.sdkConfiguration.RetryConfig
332340
retryConfig := o.Retries
333341
if retryConfig == nil {
@@ -564,6 +572,10 @@ func (s *BankAccounts) List(ctx context.Context, request operations.ListBankAcco
564572
return nil, err
565573
}
566574

575+
for k, v := range o.SetHeaders {
576+
req.Header.Set(k, v)
577+
}
578+
567579
globalRetryConfig := s.sdkConfiguration.RetryConfig
568580
retryConfig := o.Retries
569581
if retryConfig == nil {

0 commit comments

Comments
 (0)