Skip to content

Commit

Permalink
Merge pull request #2 from polarsource/speakeasy-sdk-regen-1734528750
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.0.3
  • Loading branch information
birkjernstrom authored Dec 18, 2024
2 parents aa69cb1 + e347731 commit a64a7e9
Show file tree
Hide file tree
Showing 578 changed files with 1,951 additions and 5,599 deletions.
164 changes: 28 additions & 136 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
go:
version: 0.0.2
version: 0.0.3
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ speakeasyVersion: 1.456.0
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:223a518df110fa526c83bc5ea820a34acbf87c109c85ede5681da5d12798dd9e
sourceBlobDigest: sha256:937f1e89736ba0d1ed3c2affd965fdb1e7213012c7b7f15b20541a9e9f829620
sourceRevisionDigest: sha256:c59bb562781fd7baf42dda358af895c5af089d014244bd06be47b902cb390f80
sourceBlobDigest: sha256:d35f122b88cd520d91dbf3be4b9bf6357a44ea39cfebd51e6e4ef7c9505a0d7d
tags:
- latest
- speakeasy-sdk-regen-1734481520
- speakeasy-sdk-regen-1734528750
- 0.1.0
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:223a518df110fa526c83bc5ea820a34acbf87c109c85ede5681da5d12798dd9e
sourceBlobDigest: sha256:937f1e89736ba0d1ed3c2affd965fdb1e7213012c7b7f15b20541a9e9f829620
sourceRevisionDigest: sha256:c59bb562781fd7baf42dda358af895c5af089d014244bd06be47b902cb390f80
sourceBlobDigest: sha256:d35f122b88cd520d91dbf3be4b9bf6357a44ea39cfebd51e6e4ef7c9505a0d7d
codeSamplesNamespace: polar-oas-code-samples
codeSamplesRevisionDigest: sha256:dcd5c64cb182962109903273005ca97ee02720b138f993f497c4057fd480241f
codeSamplesRevisionDigest: sha256:f91d6961bf3cd733f6609ccb76045148ee139bc616abd778a2eae75bb08eedab
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
123 changes: 62 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,50 +61,51 @@ package main

import (
"context"
polargo "github.com/polarsource/polar-go"
"github.com/polarsource/polar-go/models/components"
"github.com/polarsource/polar-go/types"
"log"
"polar"
"polar/models/components"
"polar/types"
)

func main() {
ctx := context.Background()

s := polar.New()
s := polargo.New()

res, err := s.EndpointcheckoutCreatedPost(ctx, components.WebhookCheckoutCreatedPayload{
Data: components.Checkout{
CreatedAt: types.MustTimeFromString("2024-11-12T14:26:42.882Z"),
ModifiedAt: types.MustNewTimeFromString("2023-05-28T05:08:06.235Z"),
ID: "<value>",
PaymentProcessor: components.PaymentProcessorStripe,
Status: components.CheckoutStatusFailed,
ClientSecret: "<value>",
URL: "https://heavy-beret.com/",
ExpiresAt: types.MustTimeFromString("2022-02-25T02:26:48.460Z"),
SuccessURL: "https://sardonic-final.info/",
EmbedOrigin: polar.String("<value>"),
Amount: polar.Int64(962818),
TaxAmount: polar.Int64(6400),
Currency: polar.String("Yen"),
SubtotalAmount: polar.Int64(648726),
TotalAmount: polar.Int64(210702),
EmbedOrigin: polargo.String("<value>"),
Amount: polargo.Int64(962818),
TaxAmount: polargo.Int64(6400),
Currency: polargo.String("Yen"),
SubtotalAmount: polargo.Int64(648726),
TotalAmount: polargo.Int64(210702),
ProductID: "<value>",
ProductPriceID: "<value>",
DiscountID: polar.String("<value>"),
DiscountID: polargo.String("<value>"),
AllowDiscountCodes: true,
IsDiscountApplicable: false,
IsFreeProductPrice: false,
IsPaymentRequired: false,
IsPaymentSetupRequired: false,
IsPaymentFormRequired: false,
CustomerID: polar.String("<value>"),
CustomerName: polar.String("<value>"),
CustomerEmail: polar.String("[email protected]"),
CustomerIPAddress: polar.String("<value>"),
CustomerID: polargo.String("<value>"),
CustomerName: polargo.String("<value>"),
CustomerEmail: polargo.String("[email protected]"),
CustomerIPAddress: polargo.String("<value>"),
CustomerBillingAddress: &components.Address{
Country: "South Africa",
},
CustomerTaxID: polar.String("<id>"),
CustomerTaxID: polargo.String("<id>"),
PaymentProcessorMetadata: components.PaymentProcessorMetadata{},
Metadata: map[string]components.CheckoutMetadata{
"key": components.CreateCheckoutMetadataInteger(
Expand All @@ -119,7 +120,7 @@ func main() {
ModifiedAt: types.MustNewTimeFromString("2023-12-16T03:02:38.803Z"),
ID: "<value>",
Name: "<value>",
Description: polar.String("for embarrassment untidy long-term near honestly separate yet"),
Description: polargo.String("for embarrassment untidy long-term near honestly separate yet"),
IsRecurring: true,
IsArchived: false,
OrganizationID: "<value>",
Expand All @@ -133,9 +134,9 @@ func main() {
IsArchived: false,
ProductID: "<value>",
PriceCurrency: "<value>",
MinimumAmount: polar.Int64(691423),
MaximumAmount: polar.Int64(499526),
PresetAmount: polar.Int64(18677),
MinimumAmount: polargo.Int64(691423),
MaximumAmount: polargo.Int64(499526),
PresetAmount: polargo.Int64(18677),
},
),
),
Expand All @@ -160,12 +161,12 @@ func main() {
Path: "/private/var",
MimeType: "<value>",
Size: 245189,
StorageVersion: polar.String("<value>"),
ChecksumEtag: polar.String("<value>"),
ChecksumSha256Base64: polar.String("<value>"),
ChecksumSha256Hex: polar.String("<value>"),
StorageVersion: polargo.String("<value>"),
ChecksumEtag: polargo.String("<value>"),
ChecksumSha256Base64: polargo.String("<value>"),
ChecksumSha256Hex: polargo.String("<value>"),
LastModifiedAt: types.MustNewTimeFromString("2022-11-03T15:00:03.276Z"),
Version: polar.String("<value>"),
Version: polargo.String("<value>"),
IsUploaded: false,
CreatedAt: types.MustTimeFromString("2024-06-07T13:47:02.365Z"),
SizeReadable: "<value>",
Expand Down Expand Up @@ -193,10 +194,10 @@ func main() {
BasisPoints: 341163,
ID: "<value>",
Name: "<value>",
Code: polar.String("<value>"),
Code: polargo.String("<value>"),
},
),
SubscriptionID: polar.String("<value>"),
SubscriptionID: polargo.String("<value>"),
AttachedCustomFields: []components.AttachedCustomField{
components.AttachedCustomField{
CustomFieldID: "<value>",
Expand Down Expand Up @@ -307,17 +308,17 @@ package main

import (
"context"
polargo "github.com/polarsource/polar-go"
"github.com/polarsource/polar-go/models/operations"
"log"
"os"
"polar"
"polar/models/operations"
)

func main() {
ctx := context.Background()

s := polar.New(
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polargo.New(
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down Expand Up @@ -543,17 +544,17 @@ package main

import (
"context"
polargo "github.com/polarsource/polar-go"
"github.com/polarsource/polar-go/models/operations"
"log"
"os"
"polar"
"polar/models/operations"
)

func main() {
ctx := context.Background()

s := polar.New(
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polargo.New(
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down Expand Up @@ -591,19 +592,19 @@ package main

import (
"context"
polargo "github.com/polarsource/polar-go"
"github.com/polarsource/polar-go/models/operations"
"github.com/polarsource/polar-go/retry"
"log"
"models/operations"
"os"
"polar"
"polar/models/operations"
"polar/retry"
)

func main() {
ctx := context.Background()

s := polar.New(
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polargo.New(
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{}, operations.WithRetries(
Expand Down Expand Up @@ -645,18 +646,18 @@ package main

import (
"context"
polargo "github.com/polarsource/polar-go"
"github.com/polarsource/polar-go/models/operations"
"github.com/polarsource/polar-go/retry"
"log"
"os"
"polar"
"polar/models/operations"
"polar/retry"
)

func main() {
ctx := context.Background()

s := polar.New(
polar.WithRetryConfig(
s := polargo.New(
polargo.WithRetryConfig(
retry.Config{
Strategy: "backoff",
Backoff: &retry.BackoffStrategy{
Expand All @@ -667,7 +668,7 @@ func main() {
},
RetryConnectionErrors: false,
}),
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down Expand Up @@ -716,18 +717,18 @@ package main
import (
"context"
"errors"
polargo "github.com/polarsource/polar-go"
"github.com/polarsource/polar-go/models/apierrors"
"github.com/polarsource/polar-go/models/operations"
"log"
"os"
"polar"
"polar/models/apierrors"
"polar/models/operations"
)

func main() {
ctx := context.Background()

s := polar.New(
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polargo.New(
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down Expand Up @@ -769,18 +770,18 @@ package main

import (
"context"
polargo "github.com/polarsource/polar-go"
"github.com/polarsource/polar-go/models/operations"
"log"
"os"
"polar"
"polar/models/operations"
)

func main() {
ctx := context.Background()

s := polar.New(
polar.WithServer("sandbox"),
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polargo.New(
polargo.WithServer("sandbox"),
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down Expand Up @@ -814,18 +815,18 @@ package main

import (
"context"
polargo "github.com/polarsource/polar-go"
"github.com/polarsource/polar-go/models/operations"
"log"
"os"
"polar"
"polar/models/operations"
)

func main() {
ctx := context.Background()

s := polar.New(
polar.WithServerURL("https://api.polar.sh"),
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polargo.New(
polargo.WithServerURL("https://api.polar.sh"),
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@ Based on:
### Generated
- [go v0.0.2] .
### Releases
- [Go v0.0.2] https://github.com/polarsource/polar-go/releases/tag/v0.0.2 - .
- [Go v0.0.2] https://github.com/polarsource/polar-go/releases/tag/v0.0.2 - .

## 2024-12-18 13:32:26
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.456.0 (2.481.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.0.3] .
### Releases
- [Go v0.0.3] https://github.com/polarsource/polar-go/releases/tag/v0.0.3 - .
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ package main

import (
"context"
polargo "github.com/polarsource/polar-go"
"github.com/polarsource/polar-go/models/operations"
"log"
"os"
"polar"
"polar/models/operations"
)

func main() {
ctx := context.Background()

s := polar.New(
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polargo.New(
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down
14 changes: 7 additions & 7 deletions advertisements.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package polar
package polargo

import (
"bytes"
"context"
"fmt"
"github.com/polarsource/polar-go/internal/hooks"
"github.com/polarsource/polar-go/internal/utils"
"github.com/polarsource/polar-go/models/apierrors"
"github.com/polarsource/polar-go/models/components"
"github.com/polarsource/polar-go/models/operations"
"github.com/polarsource/polar-go/retry"
"github.com/spyzhov/ajson"
"net/http"
"net/url"
"polar/internal/hooks"
"polar/internal/utils"
"polar/models/apierrors"
"polar/models/components"
"polar/models/operations"
"polar/retry"
)

type Advertisements struct {
Expand Down
Loading

0 comments on commit a64a7e9

Please sign in to comment.