Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.456.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Dec 18, 2024
1 parent 9155286 commit 4636234
Show file tree
Hide file tree
Showing 387 changed files with 2,045 additions and 1,506 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

<div align="center">
<a href="https://codespaces.new/polarsource/polar-go.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
</div>
<br>

> **Remember to shutdown a GitHub Codespace when it is not in use!**
# Dev Containers Quick Start
Expand Down
442 changes: 279 additions & 163 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.1
version: 0.0.2
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
13 changes: 7 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
speakeasyVersion: 1.455.7
speakeasyVersion: 1.456.0
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:f30da726b995d1db21d6bc98c3e543aa1c900f5858115c6fd387d5d4b145e46d
sourceBlobDigest: sha256:76b4afe82993867862c297d27fc83ed8feaa0dcd99007d82a66c56454b631a24
sourceRevisionDigest: sha256:223a518df110fa526c83bc5ea820a34acbf87c109c85ede5681da5d12798dd9e
sourceBlobDigest: sha256:937f1e89736ba0d1ed3c2affd965fdb1e7213012c7b7f15b20541a9e9f829620
tags:
- latest
- speakeasy-sdk-regen-1734481520
- 0.1.0
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:f30da726b995d1db21d6bc98c3e543aa1c900f5858115c6fd387d5d4b145e46d
sourceBlobDigest: sha256:76b4afe82993867862c297d27fc83ed8feaa0dcd99007d82a66c56454b631a24
sourceRevisionDigest: sha256:223a518df110fa526c83bc5ea820a34acbf87c109c85ede5681da5d12798dd9e
sourceBlobDigest: sha256:937f1e89736ba0d1ed3c2affd965fdb1e7213012c7b7f15b20541a9e9f829620
codeSamplesNamespace: polar-oas-code-samples
codeSamplesRevisionDigest: sha256:9224478b34ad5bc0532fedf514276c37f95fe21fb7296d0a7f5850dfce85b0f9
codeSamplesRevisionDigest: sha256:dcd5c64cb182962109903273005ca97ee02720b138f993f497c4057fd480241f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
130 changes: 69 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ 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 := polargo.New()
s := polar.New()

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

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down Expand Up @@ -535,17 +543,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 := polargo.New(
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polar.New(
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down Expand Up @@ -583,19 +591,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 := polargo.New(
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polar.New(
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{}, operations.WithRetries(
Expand Down Expand Up @@ -637,18 +645,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 := polargo.New(
polargo.WithRetryConfig(
s := polar.New(
polar.WithRetryConfig(
retry.Config{
Strategy: "backoff",
Backoff: &retry.BackoffStrategy{
Expand All @@ -659,7 +667,7 @@ func main() {
},
RetryConnectionErrors: false,
}),
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down Expand Up @@ -708,18 +716,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 := polargo.New(
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polar.New(
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down Expand Up @@ -761,18 +769,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 := polargo.New(
polargo.WithServer("sandbox"),
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polar.New(
polar.WithServer("sandbox"),
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down Expand Up @@ -806,18 +814,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 := polargo.New(
polargo.WithServerURL("https://api.polar.sh"),
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polar.New(
polar.WithServerURL("https://api.polar.sh"),
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down
11 changes: 11 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


## 2024-12-18 08:38:33
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.456.0 (2.481.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.0.2] .
### Releases
- [Go v0.0.2] https://github.com/polarsource/polar-go/releases/tag/v0.0.2 - .
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 := polargo.New(
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
s := polar.New(
polar.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)

res, err := s.ExternalOrganizations.List(ctx, operations.ExternalOrganizationsListRequest{})
Expand Down
Loading

0 comments on commit 4636234

Please sign in to comment.