Skip to content

Commit 30b67bc

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.581.2
1 parent c4dc8a6 commit 30b67bc

File tree

104 files changed

+807
-3406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+807
-3406
lines changed

.speakeasy/gen.lock

Lines changed: 103 additions & 119 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ generation:
1919
auth:
2020
oAuth2ClientCredentialsEnabled: true
2121
oAuth2PasswordEnabled: true
22+
tests:
23+
generateTests: true
24+
generateNewTests: false
25+
skipResponseBodyAssertions: false
2226
go:
23-
version: 0.7.1
27+
version: 0.7.2
2428
additionalDependencies: {}
2529
allowUnknownFieldsInWeakUnions: true
2630
baseErrorName: PolarError

.speakeasy/workflow.lock

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.567.1
1+
speakeasyVersion: 1.581.2
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:e2baa3812096dfbd726e06b63462f412f42ee6f97b9e8d53d22e0d06e8f58062
6-
sourceBlobDigest: sha256:d8b25963e07c3aed89cf253001044af257ac0ebeaffd44140c1b68ce369d9dd9
5+
sourceRevisionDigest: sha256:9e4f29b476148b87dbcbc39c978d6d860e8a025f5ceb2380aed27feab0e7d176
6+
sourceBlobDigest: sha256:c1808c03b5c463281affcfcd41c77346f92cd1c4faa37fe2c66d98ed30b2bc6e
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1750333054
9+
- speakeasy-sdk-regen-1751329989
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:e2baa3812096dfbd726e06b63462f412f42ee6f97b9e8d53d22e0d06e8f58062
16-
sourceBlobDigest: sha256:d8b25963e07c3aed89cf253001044af257ac0ebeaffd44140c1b68ce369d9dd9
15+
sourceRevisionDigest: sha256:9e4f29b476148b87dbcbc39c978d6d860e8a025f5ceb2380aed27feab0e7d176
16+
sourceBlobDigest: sha256:c1808c03b5c463281affcfcd41c77346f92cd1c4faa37fe2c66d98ed30b2bc6e
1717
codeSamplesNamespace: polar-oas-code-samples-go
18-
codeSamplesRevisionDigest: sha256:2e36ed2bcb0b86f534207633a2a2010e1d1f2606d4e862c4065934c1d75756fe
18+
codeSamplesRevisionDigest: sha256:a11ca614446aaa8485c2f5f2e37b4a7ae8c0b742b03b60f8596d9c7382215107
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest
@@ -28,6 +28,7 @@ workflow:
2828
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/type_parameter.yml
2929
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/read_only.yml
3030
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/event_discriminator.yml
31+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/timezone_enum.yml
3132
registry:
3233
location: registry.speakeasyapi.dev/polar/polar/polar-oas
3334
targets:

.speakeasy/workflow.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
workflowVersion: 1.0.0
22
speakeasyVersion: latest
33
sources:
4-
Polar-OAS:
5-
inputs:
6-
- location: https://api.polar.sh/openapi.json
7-
overlays:
8-
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/security.yml
9-
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/type_parameter.yml
10-
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/read_only.yml
11-
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/event_discriminator.yml
12-
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/timezone_enum.yml
13-
registry:
14-
location: registry.speakeasyapi.dev/polar/polar/polar-oas
4+
Polar-OAS:
5+
inputs:
6+
- location: https://api.polar.sh/openapi.json
7+
overlays:
8+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/security.yml
9+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/type_parameter.yml
10+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/read_only.yml
11+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/event_discriminator.yml
12+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/timezone_enum.yml
13+
registry:
14+
location: registry.speakeasyapi.dev/polar/polar/polar-oas
1515
targets:
16-
polar:
17-
target: go
18-
source: Polar-OAS
19-
codeSamples:
20-
output: codeSamples.yaml
21-
registry:
22-
location: registry.speakeasyapi.dev/polar/polar/polar-oas-code-samples-go
23-
labelOverride:
24-
fixedValue: Go (SDK)
16+
polar:
17+
target: go
18+
source: Polar-OAS
19+
codeSamples:
20+
output: codeSamples.yaml
21+
registry:
22+
location: registry.speakeasyapi.dev/polar/polar/polar-oas-code-samples-go
23+
labelOverride:
24+
fixedValue: Go (SDK)

README.md

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ func main() {
111111
},
112112
CustomerTaxID: polargo.String("<id>"),
113113
PaymentProcessorMetadata: map[string]string{},
114-
CustomerBillingAddressFields: components.CheckoutCustomerBillingAddressFields{
115-
Country: false,
116-
State: true,
117-
City: false,
118-
PostalCode: true,
119-
Line1: true,
120-
Line2: false,
114+
BillingAddressFields: components.CheckoutBillingAddressFields{
115+
Country: components.BillingAddressFieldModeRequired,
116+
State: components.BillingAddressFieldModeDisabled,
117+
City: components.BillingAddressFieldModeRequired,
118+
PostalCode: components.BillingAddressFieldModeRequired,
119+
Line1: components.BillingAddressFieldModeRequired,
120+
Line2: components.BillingAddressFieldModeDisabled,
121121
},
122122
Metadata: map[string]components.CheckoutMetadata{
123123
"key": components.CreateCheckoutMetadataStr(
@@ -150,16 +150,15 @@ func main() {
150150
},
151151
),
152152
),
153-
components.CreateCheckoutProductPricesProductPrice(
154-
components.CreateProductPriceFixed(
155-
components.ProductPriceFixed{
153+
components.CreateCheckoutProductPricesLegacyRecurringProductPrice(
154+
components.CreateLegacyRecurringProductPriceFixed(
155+
components.LegacyRecurringProductPriceFixed{
156156
CreatedAt: types.MustTimeFromString("2024-05-02T18:25:33.974Z"),
157157
ModifiedAt: types.MustNewTimeFromString("2025-02-06T12:55:07.640Z"),
158158
ID: "<value>",
159159
IsArchived: false,
160160
ProductID: "<value>",
161-
Type: components.ProductPriceTypeRecurring,
162-
RecurringInterval: components.SubscriptionRecurringIntervalMonth.ToPointer(),
161+
RecurringInterval: components.SubscriptionRecurringIntervalMonth,
163162
PriceCurrency: "<value>",
164163
PriceAmount: 115799,
165164
},
@@ -225,18 +224,16 @@ func main() {
225224
},
226225
},
227226
ProductPrice: components.CreateCheckoutProductPriceLegacyRecurringProductPrice(
228-
components.CreateLegacyRecurringProductPriceCustom(
229-
components.LegacyRecurringProductPriceCustom{
230-
CreatedAt: types.MustTimeFromString("2025-07-31T12:54:47.590Z"),
231-
ModifiedAt: types.MustNewTimeFromString("2023-01-11T22:31:47.320Z"),
227+
components.CreateLegacyRecurringProductPriceFixed(
228+
components.LegacyRecurringProductPriceFixed{
229+
CreatedAt: types.MustTimeFromString("2023-04-17T07:49:35.822Z"),
230+
ModifiedAt: types.MustNewTimeFromString("2025-07-31T12:54:47.590Z"),
232231
ID: "<value>",
233232
IsArchived: true,
234233
ProductID: "<value>",
235234
RecurringInterval: components.SubscriptionRecurringIntervalMonth,
236235
PriceCurrency: "<value>",
237-
MinimumAmount: polargo.Int64(203013),
238-
MaximumAmount: nil,
239-
PresetAmount: polargo.Int64(119260),
236+
PriceAmount: 266632,
240237
},
241238
),
242239
),
@@ -462,14 +459,13 @@ func main() {
462459

463460
* [Get](docs/sdks/polarcustomers/README.md#get) - Get Customer
464461
* [Update](docs/sdks/polarcustomers/README.md#update) - Update Customer
465-
* [GetPaymentMethods](docs/sdks/polarcustomers/README.md#getpaymentmethods) - Get Customer Payment Methods
462+
* [ListPaymentMethods](docs/sdks/polarcustomers/README.md#listpaymentmethods) - List Customer Payment Methods
466463
* [AddPaymentMethod](docs/sdks/polarcustomers/README.md#addpaymentmethod) - Add Customer Payment Method
467464
* [DeletePaymentMethod](docs/sdks/polarcustomers/README.md#deletepaymentmethod) - Delete Customer Payment Method
468465

469466
#### [CustomerPortal.Downloadables](docs/sdks/downloadables/README.md)
470467

471468
* [List](docs/sdks/downloadables/README.md#list) - List Downloadables
472-
* [Get](docs/sdks/downloadables/README.md#get) - Get Downloadable
473469

474470
#### [CustomerPortal.LicenseKeys](docs/sdks/polarlicensekeys/README.md)
475471

@@ -574,14 +570,6 @@ func main() {
574570
* [Introspect](docs/sdks/oauth2/README.md#introspect) - Introspect Token
575571
* [Userinfo](docs/sdks/oauth2/README.md#userinfo) - Get User Info
576572

577-
#### [Oauth2.Clients](docs/sdks/clients/README.md)
578-
579-
* [List](docs/sdks/clients/README.md#list) - List Clients
580-
* [Create](docs/sdks/clients/README.md#create) - Create Client
581-
* [Get](docs/sdks/clients/README.md#get) - Get Client
582-
* [Update](docs/sdks/clients/README.md#update) - Update Client
583-
* [Delete](docs/sdks/clients/README.md#delete) - Delete Client
584-
585573
### [Orders](docs/sdks/orders/README.md)
586574

587575
* [List](docs/sdks/orders/README.md#list) - List Orders

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,4 +398,14 @@ Based on:
398398
### Generated
399399
- [go v0.7.1] .
400400
### Releases
401-
- [Go v0.7.1] https://github.com/polarsource/polar-go/releases/tag/v0.7.1 - .
401+
- [Go v0.7.1] https://github.com/polarsource/polar-go/releases/tag/v0.7.1 - .
402+
403+
## 2025-07-15 00:30:09
404+
### Changes
405+
Based on:
406+
- OpenAPI Doc
407+
- Speakeasy CLI 1.581.2 (2.656.9) https://github.com/speakeasy-api/speakeasy
408+
### Generated
409+
- [go v0.7.2] .
410+
### Releases
411+
- [Go v0.7.2] https://github.com/polarsource/polar-go/releases/tag/v0.7.2 - .

checkouts.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ func (s *Checkouts) ClientGet(ctx context.Context, clientSecret string, opts ...
11441144
Context: ctx,
11451145
OperationID: "checkouts:client_get",
11461146
OAuth2Scopes: []string{},
1147-
SecuritySource: nil,
1147+
SecuritySource: s.sdkConfiguration.Security,
11481148
}
11491149

11501150
timeout := o.Timeout
@@ -1165,6 +1165,10 @@ func (s *Checkouts) ClientGet(ctx context.Context, clientSecret string, opts ...
11651165
req.Header.Set("Accept", "application/json")
11661166
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
11671167

1168+
if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
1169+
return nil, err
1170+
}
1171+
11681172
for k, v := range o.SetHeaders {
11691173
req.Header.Set(k, v)
11701174
}
@@ -1414,7 +1418,7 @@ func (s *Checkouts) ClientUpdate(ctx context.Context, clientSecret string, check
14141418
Context: ctx,
14151419
OperationID: "checkouts:client_update",
14161420
OAuth2Scopes: []string{},
1417-
SecuritySource: nil,
1421+
SecuritySource: s.sdkConfiguration.Security,
14181422
}
14191423
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "CheckoutUpdatePublic", "json", `request:"mediaType=application/json"`)
14201424
if err != nil {
@@ -1442,6 +1446,10 @@ func (s *Checkouts) ClientUpdate(ctx context.Context, clientSecret string, check
14421446
req.Header.Set("Content-Type", reqContentType)
14431447
}
14441448

1449+
if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
1450+
return nil, err
1451+
}
1452+
14451453
for k, v := range o.SetHeaders {
14461454
req.Header.Set(k, v)
14471455
}

0 commit comments

Comments
 (0)