Skip to content

Commit

Permalink
Merge pull request #513 from codatio/speakeasy-sdk-regen-1704719505
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate Bank Feeds library
  • Loading branch information
dcoplowe authored Jan 8, 2024
2 parents ad6bcf6 + c01a596 commit b019723
Show file tree
Hide file tree
Showing 51 changed files with 561 additions and 220 deletions.
198 changes: 198 additions & 0 deletions bank-feeds/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
lockVersion: 2.0.0
id: bdb0eb46-d457-4d7c-bcaf-83814a78f76b
management:
docChecksum: b095b0a347cf654b362ab0929e984eb2
docVersion: 3.0.0
speakeasyVersion: internal
generationVersion: 2.228.3
releaseVersion: 5.0.0
configChecksum: f4e19902565403263e5ad1e58e6d8ae0
repoURL: https://github.com/codatio/client-sdk-go.git
repoSubDirectory: bank-feeds
installationURL: https://github.com/codatio/client-sdk-go/bank-feeds
published: true
features:
go:
constsAndDefaults: 0.1.2
core: 3.3.0
deprecations: 2.81.1
examples: 2.81.3
globalSecurity: 2.82.3
globalServerURLs: 2.82.1
nameOverrides: 2.81.1
retries: 2.82.1
generatedFiles:
- companies.go
- connections.go
- accountmapping.go
- sourceaccounts.go
- transactions.go
- codatbankfeeds.go
- go.mod
- go.sum
- tests/helpers.go
- pkg/models/sdkerrors/sdkerror.go
- pkg/types/bigint.go
- pkg/types/date.go
- pkg/types/datetime.go
- pkg/types/decimal.go
- pkg/types/pointers.go
- pkg/utils/contenttype.go
- pkg/utils/form.go
- pkg/utils/headers.go
- pkg/utils/json.go
- pkg/utils/pathparams.go
- pkg/utils/queryparams.go
- pkg/utils/requestbody.go
- pkg/utils/retries.go
- pkg/utils/security.go
- pkg/utils/utils.go
- /pkg/models/operations/createcompany.go
- /pkg/models/operations/deletecompany.go
- /pkg/models/operations/getcompany.go
- /pkg/models/operations/listcompanies.go
- /pkg/models/operations/updatecompany.go
- /pkg/models/operations/createconnection.go
- /pkg/models/operations/deleteconnection.go
- /pkg/models/operations/getconnection.go
- /pkg/models/operations/listconnections.go
- /pkg/models/operations/unlinkconnection.go
- /pkg/models/operations/createbankaccountmapping.go
- /pkg/models/operations/getbankaccountmapping.go
- /pkg/models/operations/createsourceaccount.go
- /pkg/models/operations/deletesourceaccount.go
- /pkg/models/operations/deletebankfeedcredentials.go
- /pkg/models/operations/generatecredentials.go
- /pkg/models/operations/listsourceaccounts.go
- /pkg/models/operations/updatesourceaccount.go
- /pkg/models/operations/createbanktransactions.go
- /pkg/models/operations/getcreateoperation.go
- /pkg/models/operations/listcreateoperations.go
- /pkg/models/shared/zero.go
- /pkg/models/shared/company.go
- /pkg/models/shared/connection.go
- /pkg/models/shared/dataconnectionstatus.go
- /pkg/models/shared/dataconnectionerror.go
- /pkg/models/shared/companyrequestbody.go
- /pkg/models/shared/items.go
- /pkg/models/shared/companies.go
- /pkg/models/shared/links.go
- /pkg/models/shared/halref.go
- /pkg/models/shared/connections.go
- /pkg/models/shared/bankfeedaccountmappingresponse.go
- /pkg/models/shared/bankfeedmapping.go
- /pkg/models/shared/targetaccountoption.go
- /pkg/models/shared/sourceaccount.go
- /pkg/models/shared/bankaccountcredentials.go
- /pkg/models/shared/createbanktransactionsresponse.go
- /pkg/models/shared/validation.go
- /pkg/models/shared/validationitem.go
- /pkg/models/shared/pushoperationstatus.go
- /pkg/models/shared/datatype.go
- /pkg/models/shared/createbanktransactions.go
- /pkg/models/shared/banktransactions.go
- /pkg/models/shared/pushoperationchange.go
- /pkg/models/shared/pushchangetype.go
- /pkg/models/shared/pushoperationref.go
- /pkg/models/shared/pushoperation.go
- /pkg/models/shared/pushoperations.go
- /pkg/models/shared/security.go
- /pkg/models/shared/clientratelimitreachedwebhook.go
- /pkg/models/shared/clientratelimitreachedwebhookdata.go
- /pkg/models/shared/clientratelimitresetwebhook.go
- /pkg/models/shared/clientratelimitresetwebhookdata.go
- /pkg/models/sdkerrors/errormessage.go
- /pkg/models/webhooks/clientratelimitreached.go
- /pkg/models/webhooks/clientratelimitreset.go
- docs/pkg/models/operations/createcompanyresponse.md
- docs/pkg/models/operations/deletecompanyrequest.md
- docs/pkg/models/operations/deletecompanyresponse.md
- docs/pkg/models/operations/getcompanyrequest.md
- docs/pkg/models/operations/getcompanyresponse.md
- docs/pkg/models/operations/listcompaniesrequest.md
- docs/pkg/models/operations/listcompaniesresponse.md
- docs/pkg/models/operations/updatecompanyrequest.md
- docs/pkg/models/operations/updatecompanyresponse.md
- docs/pkg/models/operations/createconnectionrequestbody.md
- docs/pkg/models/operations/createconnectionrequest.md
- docs/pkg/models/operations/createconnectionresponse.md
- docs/pkg/models/operations/deleteconnectionrequest.md
- docs/pkg/models/operations/deleteconnectionresponse.md
- docs/pkg/models/operations/getconnectionrequest.md
- docs/pkg/models/operations/getconnectionresponse.md
- docs/pkg/models/operations/listconnectionsrequest.md
- docs/pkg/models/operations/listconnectionsresponse.md
- docs/pkg/models/operations/unlinkconnectionupdateconnection.md
- docs/pkg/models/operations/unlinkconnectionrequest.md
- docs/pkg/models/operations/unlinkconnectionresponse.md
- docs/pkg/models/operations/createbankaccountmappingrequest.md
- docs/pkg/models/operations/createbankaccountmappingresponse.md
- docs/pkg/models/operations/getbankaccountmappingrequest.md
- docs/pkg/models/operations/getbankaccountmappingresponse.md
- docs/pkg/models/operations/createsourceaccountrequest.md
- docs/pkg/models/operations/createsourceaccountresponse.md
- docs/pkg/models/operations/deletesourceaccountrequest.md
- docs/pkg/models/operations/deletesourceaccountresponse.md
- docs/pkg/models/operations/deletebankfeedcredentialsrequest.md
- docs/pkg/models/operations/deletebankfeedcredentialsresponse.md
- docs/pkg/models/operations/generatecredentialsrequest.md
- docs/pkg/models/operations/generatecredentialsresponse.md
- docs/pkg/models/operations/listsourceaccountsrequest.md
- docs/pkg/models/operations/listsourceaccountsresponse.md
- docs/pkg/models/operations/updatesourceaccountrequest.md
- docs/pkg/models/operations/updatesourceaccountresponse.md
- docs/pkg/models/operations/createbanktransactionsrequest.md
- docs/pkg/models/operations/createbanktransactionsresponse.md
- docs/pkg/models/operations/getcreateoperationrequest.md
- docs/pkg/models/operations/getcreateoperationresponse.md
- docs/pkg/models/operations/listcreateoperationsrequest.md
- docs/pkg/models/operations/listcreateoperationsresponse.md
- docs/pkg/models/shared/zero.md
- docs/pkg/models/shared/groupreference.md
- docs/pkg/models/shared/company.md
- docs/pkg/models/shared/sourcetype.md
- docs/pkg/models/shared/connection.md
- docs/pkg/models/shared/dataconnectionstatus.md
- docs/pkg/models/shared/dataconnectionerror.md
- docs/pkg/models/shared/companyrequestbody.md
- docs/pkg/models/shared/items.md
- docs/pkg/models/shared/companies.md
- docs/pkg/models/shared/links.md
- docs/pkg/models/shared/halref.md
- docs/pkg/models/shared/connections.md
- docs/pkg/models/shared/bankfeedaccountmappingresponse.md
- docs/pkg/models/shared/bankfeedmapping.md
- docs/pkg/models/shared/targetaccountoption.md
- docs/pkg/models/shared/sourceaccount.md
- docs/pkg/models/shared/bankaccountcredentials.md
- docs/pkg/models/shared/createbanktransactionsresponse.md
- docs/pkg/models/shared/validation.md
- docs/pkg/models/shared/validationitem.md
- docs/pkg/models/shared/pushoperationstatus.md
- docs/pkg/models/shared/datatype.md
- docs/pkg/models/shared/createbanktransactions.md
- docs/pkg/models/shared/banktransactiontype.md
- docs/pkg/models/shared/banktransactions.md
- docs/pkg/models/shared/pushoperationchange.md
- docs/pkg/models/shared/pushchangetype.md
- docs/pkg/models/shared/pushoperationref.md
- docs/pkg/models/shared/pushoperation.md
- docs/pkg/models/shared/pushoperations.md
- docs/pkg/models/shared/security.md
- docs/pkg/models/shared/clientratelimitreachedwebhook.md
- docs/pkg/models/shared/clientratelimitreachedwebhookdata.md
- docs/pkg/models/shared/clientratelimitresetwebhook.md
- docs/pkg/models/shared/clientratelimitresetwebhookdata.md
- docs/pkg/models/sdkerrors/errormessage.md
- docs/pkg/models/webhooks/clientratelimitreachedresponse.md
- docs/pkg/models/webhooks/clientratelimitresetresponse.md
- docs/sdks/codatbankfeeds/README.md
- docs/pkg/models/operations/option.md
- docs/sdks/companies/README.md
- docs/sdks/connections/README.md
- docs/sdks/accountmapping/README.md
- docs/sdks/sourceaccounts/README.md
- docs/sdks/transactions/README.md
- USAGE.md
- pkg/models/operations/options.go
- .gitattributes
85 changes: 60 additions & 25 deletions bank-feeds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ package main

import (
"context"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v4"
"github.com/codatio/client-sdk-go/bank-feeds/v4/pkg/models/shared"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v5"
"github.com/codatio/client-sdk-go/bank-feeds/v5/pkg/models/shared"
"log"
)

Expand All @@ -38,7 +38,12 @@ func main() {
ctx := context.Background()
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
Description: bankfeeds.String("Requested early access to the new financing scheme."),
Name: "Bank of Dave",
Groups: []shared.Items{
shared.Items{
ID: bankfeeds.String("60d2fa12-8a04-11ee-b9d1-0242ac120002"),
},
},
Name: "Bank of Dave",
})
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -115,9 +120,9 @@ package main

import (
"context"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v4"
"github.com/codatio/client-sdk-go/bank-feeds/v4/pkg/models/shared"
"github.com/codatio/client-sdk-go/bank-feeds/v4/pkg/utils"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v5"
"github.com/codatio/client-sdk-go/bank-feeds/v5/pkg/models/shared"
"github.com/codatio/client-sdk-go/bank-feeds/v5/pkg/utils"
"log"
"pkg/models/operations"
)
Expand All @@ -132,7 +137,12 @@ func main() {
ctx := context.Background()
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
Description: bankfeeds.String("Requested early access to the new financing scheme."),
Name: "Bank of Dave",
Groups: []shared.Items{
shared.Items{
ID: bankfeeds.String("60d2fa12-8a04-11ee-b9d1-0242ac120002"),
},
},
Name: "Bank of Dave",
}, operations.WithRetries(
utils.RetryConfig{
Strategy: "backoff",
Expand Down Expand Up @@ -161,9 +171,9 @@ package main

import (
"context"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v4"
"github.com/codatio/client-sdk-go/bank-feeds/v4/pkg/models/shared"
"github.com/codatio/client-sdk-go/bank-feeds/v4/pkg/utils"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v5"
"github.com/codatio/client-sdk-go/bank-feeds/v5/pkg/models/shared"
"github.com/codatio/client-sdk-go/bank-feeds/v5/pkg/utils"
"log"
)

Expand All @@ -188,7 +198,12 @@ func main() {
ctx := context.Background()
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
Description: bankfeeds.String("Requested early access to the new financing scheme."),
Name: "Bank of Dave",
Groups: []shared.Items{
shared.Items{
ID: bankfeeds.String("60d2fa12-8a04-11ee-b9d1-0242ac120002"),
},
},
Name: "Bank of Dave",
})
if err != nil {
log.Fatal(err)
Expand All @@ -212,7 +227,7 @@ Handling errors in this SDK should largely match your expectations. All operati
| Error Object | Status Code | Content Type |
| --------------------------- | --------------------------- | --------------------------- |
| sdkerrors.ErrorMessage | 400,401,402,403,429,500,503 | application/json |
| sdkerrors.SDKError | 400-600 | */* |
| sdkerrors.SDKError | 4xx-5xx | */* |

### Example

Expand All @@ -222,9 +237,9 @@ package main
import (
"context"
"errors"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v4"
"github.com/codatio/client-sdk-go/bank-feeds/v4/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/bank-feeds/v4/pkg/models/shared"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v5"
"github.com/codatio/client-sdk-go/bank-feeds/v5/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/bank-feeds/v5/pkg/models/shared"
"log"
)

Expand All @@ -238,7 +253,12 @@ func main() {
ctx := context.Background()
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
Description: bankfeeds.String("Requested early access to the new financing scheme."),
Name: "Bank of Dave",
Groups: []shared.Items{
shared.Items{
ID: bankfeeds.String("60d2fa12-8a04-11ee-b9d1-0242ac120002"),
},
},
Name: "Bank of Dave",
})
if err != nil {

Expand Down Expand Up @@ -279,8 +299,8 @@ package main

import (
"context"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v4"
"github.com/codatio/client-sdk-go/bank-feeds/v4/pkg/models/shared"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v5"
"github.com/codatio/client-sdk-go/bank-feeds/v5/pkg/models/shared"
"log"
)

Expand All @@ -295,7 +315,12 @@ func main() {
ctx := context.Background()
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
Description: bankfeeds.String("Requested early access to the new financing scheme."),
Name: "Bank of Dave",
Groups: []shared.Items{
shared.Items{
ID: bankfeeds.String("60d2fa12-8a04-11ee-b9d1-0242ac120002"),
},
},
Name: "Bank of Dave",
})
if err != nil {
log.Fatal(err)
Expand All @@ -317,8 +342,8 @@ package main

import (
"context"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v4"
"github.com/codatio/client-sdk-go/bank-feeds/v4/pkg/models/shared"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v5"
"github.com/codatio/client-sdk-go/bank-feeds/v5/pkg/models/shared"
"log"
)

Expand All @@ -333,7 +358,12 @@ func main() {
ctx := context.Background()
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
Description: bankfeeds.String("Requested early access to the new financing scheme."),
Name: "Bank of Dave",
Groups: []shared.Items{
shared.Items{
ID: bankfeeds.String("60d2fa12-8a04-11ee-b9d1-0242ac120002"),
},
},
Name: "Bank of Dave",
})
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -397,8 +427,8 @@ package main

import (
"context"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v4"
"github.com/codatio/client-sdk-go/bank-feeds/v4/pkg/models/shared"
bankfeeds "github.com/codatio/client-sdk-go/bank-feeds/v5"
"github.com/codatio/client-sdk-go/bank-feeds/v5/pkg/models/shared"
"log"
)

Expand All @@ -412,7 +442,12 @@ func main() {
ctx := context.Background()
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
Description: bankfeeds.String("Requested early access to the new financing scheme."),
Name: "Bank of Dave",
Groups: []shared.Items{
shared.Items{
ID: bankfeeds.String("60d2fa12-8a04-11ee-b9d1-0242ac120002"),
},
},
Name: "Bank of Dave",
})
if err != nil {
log.Fatal(err)
Expand Down
Loading

0 comments on commit b019723

Please sign in to comment.