Skip to content

Commit

Permalink
Merge pull request #563 from codatio/speakeasy-sdk-regen-1727875248
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate Sync for Payables library SYNC-FOR-PAYABLES-LIBRARY 2.0.0
  • Loading branch information
dcoplowe authored Oct 2, 2024
2 parents aca190f + 6484d04 commit 52da25a
Show file tree
Hide file tree
Showing 75 changed files with 383 additions and 416 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.396.9
speakeasyVersion: 1.405.9
sources:
accounting-source:
sourceNamespace: accounting-source
Expand Down Expand Up @@ -93,8 +93,8 @@ sources:
- main
sync-for-payables-source:
sourceNamespace: sync-for-payables-source
sourceRevisionDigest: sha256:c089e0d3003774c49fbe6d87c1feb141ae3ec0f0f526375b408027808af3d8b9
sourceBlobDigest: sha256:6ed96ad8ecab289621839d0df446a473e3dc8ea83765e3316020a6670b44da0b
sourceRevisionDigest: sha256:e7ae43ebd42c02cb47c75d20ca011455eb6e1c64b68c5830bd1d4536744bda40
sourceBlobDigest: sha256:b2999b2b9b935bfc647fe90125f27429ceca251baba134fe2e1b28ee05204eb6
tags:
- latest
- main
Expand Down Expand Up @@ -181,8 +181,8 @@ targets:
sync-for-payables-library:
source: sync-for-payables-source
sourceNamespace: sync-for-payables-source
sourceRevisionDigest: sha256:c089e0d3003774c49fbe6d87c1feb141ae3ec0f0f526375b408027808af3d8b9
sourceBlobDigest: sha256:6ed96ad8ecab289621839d0df446a473e3dc8ea83765e3316020a6670b44da0b
sourceRevisionDigest: sha256:e7ae43ebd42c02cb47c75d20ca011455eb6e1c64b68c5830bd1d4536744bda40
sourceBlobDigest: sha256:b2999b2b9b935bfc647fe90125f27429ceca251baba134fe2e1b28ee05204eb6
sync-for-payables-version-1-library:
source: sync-for-payables-version-1-source
sourceNamespace: sync-for-payables-version-1-source
Expand Down
69 changes: 37 additions & 32 deletions sync-for-payables/.speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sync-for-payables/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
telemetryEnabled: true
go:
version: 1.0.0
version: 2.0.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
62 changes: 33 additions & 29 deletions sync-for-payables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ package main

import (
"context"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"log"
)

Expand Down Expand Up @@ -171,10 +171,10 @@ package main

import (
"context"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/retry"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/retry"
"log"
"pkg/models/operations"
)
Expand Down Expand Up @@ -219,10 +219,10 @@ package main

import (
"context"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/retry"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/retry"
"log"
)

Expand Down Expand Up @@ -265,12 +265,16 @@ func main() {
<!-- Start Error Handling [errors] -->
## Error Handling

Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both. When specified by the OpenAPI spec document, the SDK will return the appropriate subclass.
Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both.

| Error Object | Status Code | Content Type |
| ------------------------------- | ------------------------------- | ------------------------------- |
| sdkerrors.ErrorMessage | 400,401,402,403,404,429,500,503 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* |
By Default, an API error will return `sdkerrors.SDKError`. When custom error responses are specified for an operation, the SDK may also return their associated error. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation.

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

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

### Example

Expand All @@ -280,10 +284,10 @@ package main
import (
"context"
"errors"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"log"
)

Expand Down Expand Up @@ -338,9 +342,9 @@ package main

import (
"context"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"log"
)

Expand Down Expand Up @@ -378,9 +382,9 @@ package main

import (
"context"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"log"
)

Expand Down Expand Up @@ -456,9 +460,9 @@ package main

import (
"context"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"log"
)

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

## 2024-10-02 13:20:38
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.405.9 (2.429.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v2.0.0] sync-for-payables
### Releases
- [Go v2.0.0] https://github.com/codatio/client-sdk-go/releases/tag/sync-for-payables/v2.0.0 - sync-for-payables
6 changes: 3 additions & 3 deletions sync-for-payables/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package main

import (
"context"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
syncforpayables "github.com/codatio/client-sdk-go/sync-for-payables/v2"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"log"
)

Expand Down
12 changes: 6 additions & 6 deletions sync-for-payables/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/sync-for-payables/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/utils"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils"
"io"
"net/http"
)
Expand Down
12 changes: 6 additions & 6 deletions sync-for-payables/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/sync-for-payables/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/utils"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils"
"io"
"net/http"
)
Expand Down
12 changes: 6 additions & 6 deletions sync-for-payables/bills.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/sync-for-payables/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/utils"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils"
"io"
"net/http"
)
Expand Down
14 changes: 7 additions & 7 deletions sync-for-payables/codatsyncpayables.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ package syncforpayables
import (
"context"
"fmt"
"github.com/codatio/client-sdk-go/sync-for-payables/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/utils"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils"
"net/http"
"time"
)
Expand Down Expand Up @@ -180,9 +180,9 @@ func New(opts ...SDKOption) *CodatSyncPayables {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "3.0.0",
SDKVersion: "1.0.0",
GenVersion: "2.415.7",
UserAgent: "speakeasy-sdk/go 1.0.0 2.415.7 3.0.0 github.com/codatio/client-sdk-go/sync-for-payables",
SDKVersion: "2.0.0",
GenVersion: "2.429.0",
UserAgent: "speakeasy-sdk/go 2.0.0 2.429.0 3.0.0 github.com/codatio/client-sdk-go/sync-for-payables",
Hooks: hooks.New(),
},
}
Expand Down
13 changes: 6 additions & 7 deletions sync-for-payables/companies.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/sync-for-payables/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/utils"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils"
"io"
"net/http"
"net/url"
Expand Down Expand Up @@ -529,7 +529,6 @@ func (s *Companies) Create(ctx context.Context, request *shared.CompanyRequestBo

// Update company
// Use the *Update company* endpoint to update both the name and description of the company.
// If you use [groups](https://docs.codat.io/sync-for-payables-api#/schemas/Group) to manage a set of companies, use the [Add company](https://docs.codat.io/sync-for-payables-api#/operations/add-company-to-group) or [Remove company](https://docs.codat.io/sync-for-payables-api#/operations/remove-company-from-group) endpoints to add or remove a company from a group.
//
// A [company](https://docs.codat.io/sync-for-payables-api#/schemas/Company) represents a business sharing access to their data.
// Each company can have multiple [connections](https://docs.codat.io/sync-for-payables-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.
Expand Down
12 changes: 6 additions & 6 deletions sync-for-payables/companyinformation.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/sync-for-payables/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/utils"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils"
"io"
"net/http"
)
Expand Down
12 changes: 6 additions & 6 deletions sync-for-payables/connections.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/sync-for-payables/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/pkg/utils"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/internal/hooks"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/operations"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/sdkerrors"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/models/shared"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/retry"
"github.com/codatio/client-sdk-go/sync-for-payables/v2/pkg/utils"
"io"
"net/http"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ErrorMessage

The request made is not valid.
Your `query` parameter was not correctly formed


## Fields
Expand Down
Loading

0 comments on commit 52da25a

Please sign in to comment.