Skip to content

Commit 4ac0b3b

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.527.1
1 parent 5775ba8 commit 4ac0b3b

File tree

58 files changed

+991
-270
lines changed

Some content is hidden

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

58 files changed

+991
-270
lines changed

.speakeasy/gen.lock

Lines changed: 69 additions & 40 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ generation:
1818
oAuth2ClientCredentialsEnabled: true
1919
oAuth2PasswordEnabled: true
2020
go:
21-
version: 0.4.8
21+
version: 0.4.9
2222
additionalDependencies: {}
2323
allowUnknownFieldsInWeakUnions: false
2424
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.523.2
1+
speakeasyVersion: 1.527.1
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:34e8eacbaa38662dd68783be1f004b1e469a7779251a940e9def3c5865ee9b54
6-
sourceBlobDigest: sha256:89511768d90f66b243db9ee6a29e2e5c2e9b8d810c196be56a26e95382886c60
5+
sourceRevisionDigest: sha256:f2e60de788062dba9e438ca145fc16f20ca64162e521dff02c7f00c33ebfd16d
6+
sourceBlobDigest: sha256:5cddc184176cae393b3a61eb84da432174ed99573c510d70d17ca69479f8eb2f
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1742916897
9+
- speakeasy-sdk-regen-1743121561
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:34e8eacbaa38662dd68783be1f004b1e469a7779251a940e9def3c5865ee9b54
16-
sourceBlobDigest: sha256:89511768d90f66b243db9ee6a29e2e5c2e9b8d810c196be56a26e95382886c60
15+
sourceRevisionDigest: sha256:f2e60de788062dba9e438ca145fc16f20ca64162e521dff02c7f00c33ebfd16d
16+
sourceBlobDigest: sha256:5cddc184176cae393b3a61eb84da432174ed99573c510d70d17ca69479f8eb2f
1717
codeSamplesNamespace: polar-oas-code-samples-go
18-
codeSamplesRevisionDigest: sha256:58116cc910ac1f3ce629f3144feca849274c346765dd2f379157eab316d7497c
18+
codeSamplesRevisionDigest: sha256:f9b57b7adc2d0298b652fb612927dac62cb9492e7e84767b34eb3ffc8624cf69
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 66 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ func main() {
8484
ExpiresAt: types.MustTimeFromString("2023-02-25T02:26:48.460Z"),
8585
SuccessURL: "https://sardonic-final.info/",
8686
EmbedOrigin: polargo.String("<value>"),
87-
Amount: polargo.Int64(962818),
88-
DiscountAmount: polargo.Int64(954929),
89-
NetAmount: polargo.Int64(467348),
87+
Amount: 962818,
88+
DiscountAmount: 954929,
89+
NetAmount: 467348,
9090
TaxAmount: polargo.Int64(6400),
91-
TotalAmount: polargo.Int64(210702),
91+
TotalAmount: 210702,
9292
Currency: polargo.String("Yen"),
9393
ProductID: "<value>",
9494
ProductPriceID: "<value>",
@@ -233,8 +233,7 @@ func main() {
233233
RecurringInterval: components.SubscriptionRecurringIntervalYear.ToPointer(),
234234
PriceCurrency: "<value>",
235235
UnitAmount: 482040,
236-
IncludedUnits: 134,
237-
CapAmount: polargo.Int64(383315),
236+
CapAmount: polargo.Int64(134),
238237
MeterID: "<value>",
239238
Meter: components.ProductPriceMeter{
240239
ID: "<value>",
@@ -243,20 +242,15 @@ func main() {
243242
},
244243
),
245244
),
246-
components.CreateCheckoutProductPricesProductPrice(
247-
components.CreateProductPriceProductPriceCustom(
248-
components.ProductPriceCustom{
249-
CreatedAt: types.MustTimeFromString("2023-10-09T19:13:38.530Z"),
250-
ModifiedAt: types.MustNewTimeFromString("2025-03-10T05:19:02.590Z"),
245+
components.CreateCheckoutProductPricesLegacyRecurringProductPrice(
246+
components.CreateLegacyRecurringProductPriceFree(
247+
components.LegacyRecurringProductPriceFree{
248+
CreatedAt: types.MustTimeFromString("2023-10-21T11:52:11.842Z"),
249+
ModifiedAt: types.MustNewTimeFromString("2023-10-09T19:13:38.530Z"),
251250
ID: "<value>",
252251
IsArchived: false,
253252
ProductID: "<value>",
254-
Type: components.ProductPriceTypeRecurring,
255-
RecurringInterval: components.SubscriptionRecurringIntervalYear.ToPointer(),
256-
PriceCurrency: "<value>",
257-
MinimumAmount: polargo.Int64(647154),
258-
MaximumAmount: polargo.Int64(948682),
259-
PresetAmount: polargo.Int64(780456),
253+
RecurringInterval: components.SubscriptionRecurringIntervalYear,
260254
},
261255
),
262256
),
@@ -341,44 +335,45 @@ func main() {
341335
IsArchived: false,
342336
OrganizationID: "<value>",
343337
Prices: []components.CheckoutProductPrices{
338+
components.CreateCheckoutProductPricesProductPrice(
339+
components.CreateProductPriceProductPriceFree(
340+
components.ProductPriceFree{
341+
CreatedAt: types.MustTimeFromString("2024-12-10T06:44:06.426Z"),
342+
ModifiedAt: types.MustNewTimeFromString("2025-11-05T18:06:37.266Z"),
343+
ID: "<value>",
344+
IsArchived: false,
345+
ProductID: "<value>",
346+
Type: components.ProductPriceTypeRecurring,
347+
RecurringInterval: components.SubscriptionRecurringIntervalMonth.ToPointer(),
348+
},
349+
),
350+
),
344351
components.CreateCheckoutProductPricesLegacyRecurringProductPrice(
345352
components.CreateLegacyRecurringProductPriceCustom(
346353
components.LegacyRecurringProductPriceCustom{
347-
CreatedAt: types.MustTimeFromString("2023-12-31T19:37:54.401Z"),
348-
ModifiedAt: types.MustNewTimeFromString("2023-11-12T05:54:16.026Z"),
354+
CreatedAt: types.MustTimeFromString("2023-11-12T05:54:16.026Z"),
355+
ModifiedAt: types.MustNewTimeFromString("2025-04-10T00:12:46.713Z"),
349356
ID: "<value>",
350357
IsArchived: false,
351358
ProductID: "<value>",
352359
RecurringInterval: components.SubscriptionRecurringIntervalYear,
353360
PriceCurrency: "<value>",
354-
MinimumAmount: polargo.Int64(513402),
355-
MaximumAmount: polargo.Int64(569122),
356-
PresetAmount: polargo.Int64(978486),
361+
MinimumAmount: polargo.Int64(569122),
362+
MaximumAmount: polargo.Int64(978486),
363+
PresetAmount: polargo.Int64(847995),
357364
},
358365
),
359366
),
360367
components.CreateCheckoutProductPricesProductPrice(
361368
components.CreateProductPriceProductPriceFree(
362369
components.ProductPriceFree{
363-
CreatedAt: types.MustTimeFromString("2025-01-09T13:42:03.592Z"),
364-
ModifiedAt: types.MustNewTimeFromString("2023-06-01T05:58:41.763Z"),
370+
CreatedAt: types.MustTimeFromString("2023-06-01T05:58:41.763Z"),
371+
ModifiedAt: types.MustNewTimeFromString("2025-08-22T02:17:20.661Z"),
365372
ID: "<value>",
366373
IsArchived: false,
367374
ProductID: "<value>",
368375
Type: components.ProductPriceTypeRecurring,
369-
RecurringInterval: components.SubscriptionRecurringIntervalYear.ToPointer(),
370-
},
371-
),
372-
),
373-
components.CreateCheckoutProductPricesLegacyRecurringProductPrice(
374-
components.CreateLegacyRecurringProductPriceFree(
375-
components.LegacyRecurringProductPriceFree{
376-
CreatedAt: types.MustTimeFromString("2025-12-22T08:06:55.176Z"),
377-
ModifiedAt: types.MustNewTimeFromString("2024-06-16T08:01:15.524Z"),
378-
ID: "<value>",
379-
IsArchived: false,
380-
ProductID: "<value>",
381-
RecurringInterval: components.SubscriptionRecurringIntervalYear,
376+
RecurringInterval: components.SubscriptionRecurringIntervalMonth.ToPointer(),
382377
},
383378
),
384379
),
@@ -470,15 +465,24 @@ func main() {
470465
},
471466
},
472467
},
473-
ProductPrice: components.CreateCheckoutProductPriceLegacyRecurringProductPrice(
474-
components.CreateLegacyRecurringProductPriceFree(
475-
components.LegacyRecurringProductPriceFree{
476-
CreatedAt: types.MustTimeFromString("2023-07-01T09:35:23.526Z"),
477-
ModifiedAt: types.MustNewTimeFromString("2023-09-05T11:14:58.018Z"),
468+
ProductPrice: components.CreateCheckoutProductPriceProductPrice(
469+
components.CreateProductPriceProductPriceMeteredUnit(
470+
components.ProductPriceMeteredUnit{
471+
CreatedAt: types.MustTimeFromString("2024-06-16T08:01:15.524Z"),
472+
ModifiedAt: types.MustNewTimeFromString("2025-06-29T02:23:28.661Z"),
478473
ID: "<value>",
479474
IsArchived: false,
480475
ProductID: "<value>",
481-
RecurringInterval: components.SubscriptionRecurringIntervalYear,
476+
Type: components.ProductPriceTypeOneTime,
477+
RecurringInterval: components.SubscriptionRecurringIntervalYear.ToPointer(),
478+
PriceCurrency: "<value>",
479+
UnitAmount: 165510,
480+
CapAmount: polargo.Int64(225792),
481+
MeterID: "<value>",
482+
Meter: components.ProductPriceMeter{
483+
ID: "<value>",
484+
Name: "<value>",
485+
},
482486
},
483487
),
484488
),
@@ -498,12 +502,12 @@ func main() {
498502
CustomFieldID: "<value>",
499503
CustomField: components.CreateCustomFieldText(
500504
components.CustomFieldText{
501-
CreatedAt: types.MustTimeFromString("2024-12-03T12:38:50.277Z"),
502-
ModifiedAt: types.MustNewTimeFromString("2024-05-21T13:41:47.986Z"),
505+
CreatedAt: types.MustTimeFromString("2025-08-21T23:33:05.774Z"),
506+
ModifiedAt: types.MustNewTimeFromString("2024-12-03T12:38:50.277Z"),
503507
ID: "<value>",
504508
Metadata: map[string]components.CustomFieldTextMetadata{
505509
"key": components.CreateCustomFieldTextMetadataInteger(
506-
473941,
510+
545650,
507511
),
508512
},
509513
Slug: "<value>",
@@ -517,48 +521,41 @@ func main() {
517521
},
518522
components.AttachedCustomField{
519523
CustomFieldID: "<value>",
520-
CustomField: components.CreateCustomFieldText(
521-
components.CustomFieldText{
522-
CreatedAt: types.MustTimeFromString("2023-01-30T18:58:55.355Z"),
523-
ModifiedAt: types.MustNewTimeFromString("2024-12-15T18:35:30.312Z"),
524+
CustomField: components.CreateCustomFieldNumber(
525+
components.CustomFieldNumber{
526+
CreatedAt: types.MustTimeFromString("2025-10-01T00:10:58.922Z"),
527+
ModifiedAt: types.MustNewTimeFromString("2023-01-30T18:58:55.355Z"),
524528
ID: "<value>",
525-
Metadata: map[string]components.CustomFieldTextMetadata{
526-
"key": components.CreateCustomFieldTextMetadataInteger(
527-
143857,
529+
Metadata: map[string]components.CustomFieldNumberMetadata{
530+
"key": components.CreateCustomFieldNumberMetadataInteger(
531+
637515,
528532
),
529533
},
530534
Slug: "<value>",
531535
Name: "<value>",
532536
OrganizationID: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
533-
Properties: components.CustomFieldTextProperties{},
537+
Properties: components.CustomFieldNumberProperties{},
534538
},
535539
),
536540
Order: 918364,
537541
Required: true,
538542
},
539543
components.AttachedCustomField{
540544
CustomFieldID: "<value>",
541-
CustomField: components.CreateCustomFieldSelect(
542-
components.CustomFieldSelect{
543-
CreatedAt: types.MustTimeFromString("2024-10-18T15:45:53.088Z"),
544-
ModifiedAt: types.MustNewTimeFromString("2023-08-08T05:58:49.836Z"),
545+
CustomField: components.CreateCustomFieldCheckbox(
546+
components.CustomFieldCheckbox{
547+
CreatedAt: types.MustTimeFromString("2024-12-10T04:39:21.164Z"),
548+
ModifiedAt: types.MustNewTimeFromString("2024-10-18T15:45:53.088Z"),
545549
ID: "<value>",
546-
Metadata: map[string]components.CustomFieldSelectMetadata{
547-
"key": components.CreateCustomFieldSelectMetadataBoolean(
548-
false,
550+
Metadata: map[string]components.CustomFieldCheckboxMetadata{
551+
"key": components.CreateCustomFieldCheckboxMetadataStr(
552+
"<value>",
549553
),
550554
},
551555
Slug: "<value>",
552556
Name: "<value>",
553557
OrganizationID: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
554-
Properties: components.CustomFieldSelectProperties{
555-
Options: []components.CustomFieldSelectOption{
556-
components.CustomFieldSelectOption{
557-
Value: "<value>",
558-
Label: "<value>",
559-
},
560-
},
561-
},
558+
Properties: components.CustomFieldCheckboxProperties{},
562559
},
563560
),
564561
Order: 187532,

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,14 @@ Based on:
228228
### Generated
229229
- [go v0.4.8] .
230230
### Releases
231-
- [Go v0.4.8] https://github.com/polarsource/polar-go/releases/tag/v0.4.8 - .
231+
- [Go v0.4.8] https://github.com/polarsource/polar-go/releases/tag/v0.4.8 - .
232+
233+
## 2025-04-02 08:02:21
234+
### Changes
235+
Based on:
236+
- OpenAPI Doc
237+
- Speakeasy CLI 1.527.1 (2.564.5) https://github.com/speakeasy-api/speakeasy
238+
### Generated
239+
- [go v0.4.9] .
240+
### Releases
241+
- [Go v0.4.9] https://github.com/polarsource/polar-go/releases/tag/v0.4.9 - .

benefits.go

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ func (s *Benefits) List(ctx context.Context, request operations.BenefitsListRequ
250250
Query: request.Query,
251251
Page: &nP,
252252
Limit: request.Limit,
253+
Sorting: request.Sorting,
253254
},
254255
opts...,
255256
)
@@ -952,7 +953,7 @@ func (s *Benefits) Update(ctx context.Context, id string, requestBody operations
952953

953954
_, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err)
954955
return nil, err
955-
} else if utils.MatchStatusCodes([]string{"403", "404", "422", "4XX", "5XX"}, httpRes.StatusCode) {
956+
} else if utils.MatchStatusCodes([]string{"404", "422", "4XX", "5XX"}, httpRes.StatusCode) {
956957
_httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil)
957958
if err != nil {
958959
return nil, err
@@ -996,27 +997,6 @@ func (s *Benefits) Update(ctx context.Context, id string, requestBody operations
996997
}
997998
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
998999
}
999-
case httpRes.StatusCode == 403:
1000-
switch {
1001-
case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`):
1002-
rawBody, err := utils.ConsumeRawBody(httpRes)
1003-
if err != nil {
1004-
return nil, err
1005-
}
1006-
1007-
var out apierrors.NotPermitted
1008-
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
1009-
return nil, err
1010-
}
1011-
1012-
return nil, &out
1013-
default:
1014-
rawBody, err := utils.ConsumeRawBody(httpRes)
1015-
if err != nil {
1016-
return nil, err
1017-
}
1018-
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
1019-
}
10201000
case httpRes.StatusCode == 404:
10211001
switch {
10221002
case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`):

0 commit comments

Comments
 (0)