Skip to content

Commit

Permalink
Merge pull request #571 from codatio/speakeasy-sdk-regen-1731929452
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate Lending library LENDING-LIBRARY 7.0.0
  • Loading branch information
dcoplowe authored Nov 18, 2024
2 parents 35c9f38 + a6568a8 commit 984b544
Show file tree
Hide file tree
Showing 355 changed files with 1,223 additions and 1,255 deletions.
14 changes: 8 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.431.0
speakeasyVersion: 1.440.1
sources:
accounting-source:
sourceNamespace: accounting-source
Expand Down Expand Up @@ -51,11 +51,11 @@ sources:
- main
lending-source:
sourceNamespace: lending-source
sourceRevisionDigest: sha256:1c1a13e40930648d6f76aadd67cc630ad6a031b90026600276f75ba695b5cff4
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
sourceRevisionDigest: sha256:ae3f5182c6b6bbb762d9c110f86c9dec705e2c2b017542fa1a804220ff175f33
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
tags:
- latest
- main
- speakeasy-sdk-regen-1731929452
platform-source:
sourceNamespace: platform-source
sourceRevisionDigest: sha256:79f704c98bf458bc595e6607b6bf1fc95a6ba5da522953eedbba8fc9cce25e21
Expand Down Expand Up @@ -151,8 +151,10 @@ targets:
lending-library:
source: lending-source
sourceNamespace: lending-source
sourceRevisionDigest: sha256:1c1a13e40930648d6f76aadd67cc630ad6a031b90026600276f75ba695b5cff4
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
sourceRevisionDigest: sha256:ae3f5182c6b6bbb762d9c110f86c9dec705e2c2b017542fa1a804220ff175f33
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
codeSamplesNamespace: lending-source-code-samples
codeSamplesRevisionDigest: sha256:e91ab159b16280445cda6b9f0c3c8113b3bbe9727d43b49a5f3847ccd3bf44aa
platform-library:
source: platform-source
sourceNamespace: platform-source
Expand Down
89 changes: 51 additions & 38 deletions lending/.speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lending/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ generation:
oAuth2PasswordEnabled: false
telemetryEnabled: true
go:
version: 6.0.0
version: 7.0.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
flattenGlobalSecurity: false
imports:
option: openapi
Expand Down
90 changes: 23 additions & 67 deletions lending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ package main

import (
"context"
lending "github.com/codatio/client-sdk-go/lending/v6"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
lending "github.com/codatio/client-sdk-go/lending/v7"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"log"
)

Expand Down Expand Up @@ -492,9 +492,9 @@ package main

import (
"context"
lending "github.com/codatio/client-sdk-go/lending/v6"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v6/pkg/retry"
lending "github.com/codatio/client-sdk-go/lending/v7"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v7/pkg/retry"
"log"
"pkg/models/operations"
)
Expand Down Expand Up @@ -537,9 +537,9 @@ package main

import (
"context"
lending "github.com/codatio/client-sdk-go/lending/v6"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v6/pkg/retry"
lending "github.com/codatio/client-sdk-go/lending/v7"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v7/pkg/retry"
"log"
)

Expand Down Expand Up @@ -586,10 +586,10 @@ By Default, an API error will return `sdkerrors.SDKError`. When custom error res

For example, the `Create` function may return the following errors:

| Error Type | Status Code | Content Type |
| --------------------------------- | --------------------------------- | --------------------------------- |
| sdkerrors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |
| Error Type | Status Code | Content Type |
| ---------------------- | --------------------------------- | ---------------- |
| sdkerrors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |

### Example

Expand All @@ -599,9 +599,9 @@ package main
import (
"context"
"errors"
lending "github.com/codatio/client-sdk-go/lending/v6"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
lending "github.com/codatio/client-sdk-go/lending/v7"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"log"
)

Expand Down Expand Up @@ -639,60 +639,16 @@ func main() {
<!-- Start Server Selection [server] -->
## Server Selection

### Select Server by Index

You can override the default server globally using the `WithServerIndex` option 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:

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://api.codat.io` | None |

#### Example

```go
package main

import (
"context"
lending "github.com/codatio/client-sdk-go/lending/v6"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"log"
)

func main() {
s := lending.New(
lending.WithServerIndex(0),
lending.WithSecurity(shared.Security{
AuthHeader: "Basic BASE_64_ENCODED(API_KEY)",
}),
)

ctx := context.Background()
res, err := s.Companies.Create(ctx, &shared.CompanyRequestBody{
Description: lending.String("Requested early access to the new financing scheme."),
Name: "Technicalium",
})
if err != nil {
log.Fatal(err)
}
if res.Company != nil {
// handle response
}
}

```


### Override Server URL Per-Client

The default server can also be overridden globally using the `WithServerURL` option when initializing the SDK client instance. For example:
The default server can also be overridden globally using the `WithServerURL(serverURL string)` option when initializing the SDK client instance. For example:
```go
package main

import (
"context"
lending "github.com/codatio/client-sdk-go/lending/v6"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
lending "github.com/codatio/client-sdk-go/lending/v7"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"log"
)

Expand Down Expand Up @@ -756,18 +712,18 @@ This can be a convenient way to configure timeouts, cookies, proxies, custom hea

This SDK supports the following security scheme globally:

| Name | Type | Scheme |
| ------------ | ------------ | ------------ |
| `AuthHeader` | apiKey | API key |
| Name | Type | Scheme |
| ------------ | ------ | ------- |
| `AuthHeader` | apiKey | API key |

You can configure it using the `WithSecurity` option when initializing the SDK client instance. For example:
```go
package main

import (
"context"
lending "github.com/codatio/client-sdk-go/lending/v6"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
lending "github.com/codatio/client-sdk-go/lending/v7"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"log"
)

Expand Down
12 changes: 11 additions & 1 deletion lending/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,14 @@ Based on:
### Generated
- [go v6.0.0] lending
### Releases
- [Go v6.0.0] https://github.com/codatio/client-sdk-go/releases/tag/lending/v6.0.0 - lending
- [Go v6.0.0] https://github.com/codatio/client-sdk-go/releases/tag/lending/v6.0.0 - lending

## 2024-11-18 11:30:44
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.440.1 (2.460.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v7.0.0] lending
### Releases
- [Go v7.0.0] https://github.com/codatio/client-sdk-go/releases/tag/lending/v7.0.0 - lending
4 changes: 2 additions & 2 deletions lending/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package main

import (
"context"
lending "github.com/codatio/client-sdk-go/lending/v6"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
lending "github.com/codatio/client-sdk-go/lending/v7"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"log"
)

Expand Down
12 changes: 6 additions & 6 deletions lending/accountbalances.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"context"
"fmt"
"github.com/cenkalti/backoff/v4"
"github.com/codatio/client-sdk-go/lending/v6/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v6/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v6/pkg/utils"
"github.com/codatio/client-sdk-go/lending/v7/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v7/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v7/pkg/utils"
"net/http"
)

Expand Down
12 changes: 6 additions & 6 deletions lending/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"context"
"fmt"
"github.com/cenkalti/backoff/v4"
"github.com/codatio/client-sdk-go/lending/v6/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v6/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v6/pkg/utils"
"github.com/codatio/client-sdk-go/lending/v7/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v7/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v7/pkg/utils"
"net/http"
)

Expand Down
12 changes: 6 additions & 6 deletions lending/accounttransactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"context"
"fmt"
"github.com/cenkalti/backoff/v4"
"github.com/codatio/client-sdk-go/lending/v6/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v6/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v6/pkg/utils"
"github.com/codatio/client-sdk-go/lending/v7/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v7/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v7/pkg/utils"
"net/http"
)

Expand Down
12 changes: 6 additions & 6 deletions lending/balancesheet.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"context"
"fmt"
"github.com/cenkalti/backoff/v4"
"github.com/codatio/client-sdk-go/lending/v6/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v6/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v6/pkg/utils"
"github.com/codatio/client-sdk-go/lending/v7/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v7/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v7/pkg/utils"
"net/http"
)

Expand Down
12 changes: 6 additions & 6 deletions lending/bankaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"context"
"fmt"
"github.com/cenkalti/backoff/v4"
"github.com/codatio/client-sdk-go/lending/v6/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v6/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v6/pkg/utils"
"github.com/codatio/client-sdk-go/lending/v7/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v7/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v7/pkg/utils"
"net/http"
)

Expand Down
12 changes: 6 additions & 6 deletions lending/bankstatements.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"context"
"fmt"
"github.com/cenkalti/backoff/v4"
"github.com/codatio/client-sdk-go/lending/v6/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v6/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v6/pkg/utils"
"github.com/codatio/client-sdk-go/lending/v7/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v7/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v7/pkg/utils"
"net/http"
)

Expand Down
12 changes: 6 additions & 6 deletions lending/banktransactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"context"
"fmt"
"github.com/cenkalti/backoff/v4"
"github.com/codatio/client-sdk-go/lending/v6/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v6/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v6/pkg/utils"
"github.com/codatio/client-sdk-go/lending/v7/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v7/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v7/pkg/utils"
"net/http"
)

Expand Down
12 changes: 6 additions & 6 deletions lending/billcreditnotes.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"context"
"fmt"
"github.com/cenkalti/backoff/v4"
"github.com/codatio/client-sdk-go/lending/v6/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v6/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v6/pkg/utils"
"github.com/codatio/client-sdk-go/lending/v7/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v7/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v7/pkg/utils"
"net/http"
)

Expand Down
12 changes: 6 additions & 6 deletions lending/billpayments.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"context"
"fmt"
"github.com/cenkalti/backoff/v4"
"github.com/codatio/client-sdk-go/lending/v6/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v6/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v6/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v6/pkg/utils"
"github.com/codatio/client-sdk-go/lending/v7/internal/hooks"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/operations"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/lending/v7/pkg/models/shared"
"github.com/codatio/client-sdk-go/lending/v7/pkg/retry"
"github.com/codatio/client-sdk-go/lending/v7/pkg/utils"
"net/http"
)

Expand Down
Loading

0 comments on commit 984b544

Please sign in to comment.