Skip to content

Commit b2e42bd

Browse files
committed
## Go SDK Changes Detected:
* `Polar.EndpointcheckoutCreatedPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.EndpointcheckoutUpdatedPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.EndpointorderCreatedPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.EndpointorderUpdatedPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.EndpointorderPaidPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.Events.Get()`: `response` **Changed** **Breaking** ⚠️ * `Polar.Events.List()`: * `request.Request` **Changed** * `response.Items.[]` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Subscriptions.List()`: * `request.Request.OrganizationId` **Removed** **Breaking** ⚠️ * `response.Items.[]` **Changed** * `Polar.CustomerPortal.Orders.GenerateInvoice()`: `error.status[409]` **Removed** **Breaking** ⚠️ * `Polar.CustomerPortal.Orders.Update()`: `response` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Orders.Get()`: `response` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Orders.List()`: * `request.Request.OrganizationId` **Removed** **Breaking** ⚠️ * `response.Items.[]` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.LicenseKeys.List()`: `request.OrganizationId` **Removed** **Breaking** ⚠️ * `Polar.CustomerPortal.Downloadables.List()`: `request.OrganizationId` **Removed** **Breaking** ⚠️ * `Polar.CustomerPortal.Seats.ResendInvitation()`: `response` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Seats.RevokeSeat()`: `response` **Changed** **Breaking** ⚠️ * `Polar.EndpointorderRefundedPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.EndpointsubscriptionCreatedPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.EndpointsubscriptionUpdatedPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.EndpointsubscriptionActivePost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.EndpointsubscriptionCanceledPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.EndpointsubscriptionUncanceledPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.EndpointsubscriptionRevokedPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.EndpointproductCreatedPost()`: * `request.Request.Data.RecurringIntervalCount` **Added** **Breaking** ⚠️ * `Polar.EndpointproductUpdatedPost()`: * `request.Request.Data.RecurringIntervalCount` **Added** **Breaking** ⚠️ * `Polar.EndpointorganizationUpdatedPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Seats.AssignSeat()`: * `request.Request` **Changed** * `response` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Seats.ListSeats()`: * `request` **Changed** * `response.Seats.[]` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Benefit-Grants.List()`: * `request.Request.OrganizationId` **Removed** **Breaking** ⚠️ * `response.Items.[].[customerBenefitGrantMeterCredit].Benefit.Organization` **Changed** * `Polar.Checkouts.ClientConfirm()`: `response` **Changed** **Breaking** ⚠️ * `Polar.Checkouts.ClientUpdate()`: `response` **Changed** **Breaking** ⚠️ * `Polar.Checkouts.ClientGet()`: `response` **Changed** **Breaking** ⚠️ * `Polar.Organizations.Create()`: * `request.Request` **Changed** **Breaking** ⚠️ * `response` **Changed** * `Polar.Checkouts.Update()`: `response` **Changed** **Breaking** ⚠️ * `Polar.Organizations.Update()`: * `request.OrganizationUpdate` **Changed** **Breaking** ⚠️ * `response` **Changed** * `Polar.Checkouts.Get()`: `response` **Changed** **Breaking** ⚠️ * `Polar.Checkouts.Create()`: `response` **Changed** **Breaking** ⚠️ * `Polar.Checkouts.List()`: `response.Items.[]` **Changed** **Breaking** ⚠️ * `Polar.Orders.GenerateInvoice()`: `error.status[409]` **Removed** **Breaking** ⚠️ * `Polar.Orders.Update()`: `response` **Changed** **Breaking** ⚠️ * `Polar.Orders.Get()`: `response` **Changed** **Breaking** ⚠️ * `Polar.Orders.List()`: `response.Items.[]` **Changed** **Breaking** ⚠️ * `Polar.Products.List()`: `response.Items.[].RecurringIntervalCount` **Added** * `Polar.Discounts.Get()`: `response.[discountFixedOnceForeverDuration].Products.[].RecurringIntervalCount` **Added** * `Polar.Webhooks.UpdateWebhookEndpoint()`: * `request.WebhookEndpointUpdate.Enabled` **Added** * `response.Enabled` **Added** * `Polar.Products.Create()`: * `request.Request` **Changed** * `response.RecurringIntervalCount` **Added** * `Polar.Products.Get()`: `response.RecurringIntervalCount` **Added** * `Polar.Products.Update()`: * `request.ProductUpdate.RecurringIntervalCount` **Added** * `response.RecurringIntervalCount` **Added** * `Polar.Products.UpdateBenefits()`: `response.RecurringIntervalCount` **Added** * `Polar.Webhooks.GetWebhookEndpoint()`: `response.Enabled` **Added** * `Polar.Webhooks.CreateWebhookEndpoint()`: `response.Enabled` **Added** * `Polar.Webhooks.ListWebhookEndpoints()`: `response.Items.[].Enabled` **Added** * `Polar.Subscriptions.Update()`: * `request.SubscriptionUpdate.[subscriptionUpdateSeats]` **Added** * `response` **Changed** * `Polar.Subscriptions.Revoke()`: `response` **Changed** * `Polar.Subscriptions.Get()`: `response` **Changed** * `Polar.Subscriptions.List()`: `response.Items.[]` **Changed** * `Polar.Organizations.Get()`: `response` **Changed** * `Polar.Organizations.List()`: `response.Items.[]` **Changed** * `Polar.Wallets.TopUp()`: **Added** * `Polar.Wallets.Get()`: **Added** * `Polar.Metrics.Get()`: `response` **Changed** * `Polar.Checkout-Links.List()`: `response.Items.[].Products.[].RecurringIntervalCount` **Added** * `Polar.Checkout-Links.Create()`: `response.Products.[].RecurringIntervalCount` **Added** * `Polar.Checkout-Links.Get()`: `response.Products.[].RecurringIntervalCount` **Added** * `Polar.Checkout-Links.Update()`: `response.Products.[].RecurringIntervalCount` **Added** * `Polar.Discounts.List()`: `response.Items.[].[discountPercentageRepeatDuration].Products.[].RecurringIntervalCount` **Added** * `Polar.Discounts.Create()`: `response.[discountPercentageRepeatDuration].Products.[].RecurringIntervalCount` **Added** * `Polar.Webhooks.ResetWebhookEndpointSecret()`: `response.Enabled` **Added** * `Polar.Discounts.Update()`: `response.[discountFixedOnceForeverDuration].Products.[].RecurringIntervalCount` **Added** * `Polar.Wallets.List()`: **Added** * `Polar.CustomerPortal.Benefit-Grants.Get()`: `response.[customerBenefitGrantDiscord].Benefit.Organization` **Changed** * `Polar.CustomerPortal.Benefit-Grants.Update()`: `response.[customerBenefitGrantLicenseKeys].Benefit.Organization` **Changed** * `Polar.Customer-Seats.ClaimSeat()`: **Added** * `Polar.Customer-Seats.GetClaimInfo()`: **Added** * `Polar.Customer-Seats.ResendInvitation()`: **Added** * `Polar.Customer-Seats.RevokeSeat()`: **Added** * `Polar.CustomerPortal.Seats.ListClaimedSubscriptions()`: `response.[]` **Changed** * `Polar.Customer-Seats.ListSeats()`: **Added** * `Polar.Customer-Seats.AssignSeat()`: **Added** * `Polar.CustomerPortal.Wallets.Get()`: **Added** * `Polar.CustomerPortal.Wallets.List()`: **Added** * `Polar.Orders.Export()`: **Added** * `Polar.Subscriptions.Create()`: **Added** * `Polar.CustomerPortal.Organizations.Get()`: `response` **Changed** * `Polar.EndpointcustomerSeatRevokedPost()`: **Added** * `Polar.CustomerPortal.Subscriptions.Get()`: `response` **Changed** * `Polar.CustomerPortal.Subscriptions.Cancel()`: `response` **Changed** * `Polar.CustomerPortal.Subscriptions.Update()`: * `request.CustomerSubscriptionUpdate.[customerSubscriptionUpdateSeats]` **Added** * `response` **Changed** * `Polar.EndpointcustomerSeatClaimedPost()`: **Added** * `Polar.EndpointcustomerSeatAssignedPost()`: **Added** * `Polar.Events.Ingest()`: * `request.Request.Events.[]` **Changed** * `response.Duplicates` **Added**
1 parent c535ed9 commit b2e42bd

File tree

320 files changed

+12378
-1332
lines changed

Some content is hidden

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

320 files changed

+12378
-1332
lines changed

.speakeasy/gen.lock

Lines changed: 396 additions & 92 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ generation:
2727
generateNewTests: false
2828
skipResponseBodyAssertions: false
2929
go:
30-
version: 0.11.1
30+
version: 0.12.0
3131
additionalDependencies: {}
3232
allowUnknownFieldsInWeakUnions: true
3333
baseErrorName: PolarError
@@ -43,6 +43,7 @@ go:
4343
operations: models/operations
4444
shared: models/components
4545
webhooks: models/webhooks
46+
includeEmptyObjects: false
4647
inputModelSuffix: input
4748
maxMethodParams: 4
4849
methodArguments: require-security-and-request
@@ -53,3 +54,4 @@ go:
5354
respectRequiredFields: false
5455
responseFormat: envelope-http
5556
sdkPackageName: ""
57+
unionDeserializationStrategy: left-to-right

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.637.3
1+
speakeasyVersion: 1.648.0
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:98dd88f089435a1af194015ca729983c7e2888b24ddc04e77194e8f913bce865
6-
sourceBlobDigest: sha256:81a64948141fbdaebf65485efe43f3942459a2da5f4c44dc6519392b117ec5e7
5+
sourceRevisionDigest: sha256:c0187c3b97b30297429930c9b97513e82a6fb748fa42bb6ef632b447899f4063
6+
sourceBlobDigest: sha256:64e17fc520f1c7b5bf6663aa5279d8655e70ee7240fa77085f5486aa632e0275
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1761052457
9+
- speakeasy-sdk-regen-1761092921
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:98dd88f089435a1af194015ca729983c7e2888b24ddc04e77194e8f913bce865
16-
sourceBlobDigest: sha256:81a64948141fbdaebf65485efe43f3942459a2da5f4c44dc6519392b117ec5e7
15+
sourceRevisionDigest: sha256:c0187c3b97b30297429930c9b97513e82a6fb748fa42bb6ef632b447899f4063
16+
sourceBlobDigest: sha256:64e17fc520f1c7b5bf6663aa5279d8655e70ee7240fa77085f5486aa632e0275
1717
codeSamplesNamespace: polar-oas-code-samples-go
18-
codeSamplesRevisionDigest: sha256:c1f4aa09a89d2205c33952c77be00ea3af980028be48a073ed8569e3a28372c1
18+
codeSamplesRevisionDigest: sha256:b7df7298f24dd5bb9dfe53812578fd41300e81b7a45cb86528c8cd50a8fd75f2
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,7 @@ func main() {
163163

164164
s := polargo.New()
165165

166-
res, err := s.CustomerPortal.BenefitGrants.List(ctx, operations.CustomerPortalBenefitGrantsListRequest{
167-
OrganizationID: polargo.Pointer(operations.CreateCustomerPortalBenefitGrantsListQueryParamOrganizationIDFilterStr(
168-
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
169-
)),
170-
}, operations.CustomerPortalBenefitGrantsListSecurity{
166+
res, err := s.CustomerPortal.BenefitGrants.List(ctx, operations.CustomerPortalBenefitGrantsListRequest{}, operations.CustomerPortalBenefitGrantsListSecurity{
171167
CustomerSession: os.Getenv("POLAR_CUSTOMER_SESSION"),
172168
})
173169
if err != nil {
@@ -300,6 +296,11 @@ func main() {
300296
* [Update](docs/sdks/polarsubscriptions/README.md#update) - Update Subscription
301297
* [Cancel](docs/sdks/polarsubscriptions/README.md#cancel) - Cancel Subscription
302298

299+
#### [CustomerPortal.Wallets](docs/sdks/polarwallets/README.md)
300+
301+
* [List](docs/sdks/polarwallets/README.md#list) - List Wallets
302+
* [Get](docs/sdks/polarwallets/README.md#get) - Get Wallet
303+
303304
### [Customers](docs/sdks/customers/README.md)
304305

305306
* [List](docs/sdks/customers/README.md#list) - List Customers
@@ -315,6 +316,15 @@ func main() {
315316
* [GetStateExternal](docs/sdks/customers/README.md#getstateexternal) - Get Customer State by External ID
316317
* [GetBalance](docs/sdks/customers/README.md#getbalance) - Get Customer Balance
317318

319+
### [CustomerSeats](docs/sdks/customerseats/README.md)
320+
321+
* [AssignSeat](docs/sdks/customerseats/README.md#assignseat) - Assign Seat
322+
* [ListSeats](docs/sdks/customerseats/README.md#listseats) - List Seats
323+
* [RevokeSeat](docs/sdks/customerseats/README.md#revokeseat) - Revoke Seat
324+
* [ResendInvitation](docs/sdks/customerseats/README.md#resendinvitation) - Resend Invitation
325+
* [GetClaimInfo](docs/sdks/customerseats/README.md#getclaiminfo) - Get Claim Info
326+
* [ClaimSeat](docs/sdks/customerseats/README.md#claimseat) - Claim Seat
327+
318328
### [CustomerSessions](docs/sdks/customersessions/README.md)
319329

320330
* [Create](docs/sdks/customersessions/README.md#create) - Create Customer Session
@@ -391,6 +401,7 @@ func main() {
391401
### [Orders](docs/sdks/orders/README.md)
392402

393403
* [List](docs/sdks/orders/README.md#list) - List Orders
404+
* [Export](docs/sdks/orders/README.md#export) - Export Subscriptions
394405
* [Get](docs/sdks/orders/README.md#get) - Get Order
395406
* [Update](docs/sdks/orders/README.md#update) - Update Order
396407
* [GenerateInvoice](docs/sdks/orders/README.md#generateinvoice) - Generate Order Invoice
@@ -424,11 +435,18 @@ func main() {
424435
### [Subscriptions](docs/sdks/subscriptions/README.md)
425436

426437
* [List](docs/sdks/subscriptions/README.md#list) - List Subscriptions
438+
* [Create](docs/sdks/subscriptions/README.md#create) - Create Subscription
427439
* [Export](docs/sdks/subscriptions/README.md#export) - Export Subscriptions
428440
* [Get](docs/sdks/subscriptions/README.md#get) - Get Subscription
429441
* [Update](docs/sdks/subscriptions/README.md#update) - Update Subscription
430442
* [Revoke](docs/sdks/subscriptions/README.md#revoke) - Revoke Subscription
431443

444+
### [Wallets](docs/sdks/wallets/README.md)
445+
446+
* [List](docs/sdks/wallets/README.md#list) - List Wallets
447+
* [Get](docs/sdks/wallets/README.md#get) - Get Wallet
448+
* [TopUp](docs/sdks/wallets/README.md#topup) - Top-Up Wallet
449+
432450
### [Webhooks](docs/sdks/webhooks/README.md)
433451

434452
* [ListWebhookEndpoints](docs/sdks/webhooks/README.md#listwebhookendpoints) - List Webhook Endpoints
@@ -687,7 +705,7 @@ func main() {
687705
ctx := context.Background()
688706

689707
s := polargo.New(
690-
polargo.WithServer("sandbox"),
708+
polargo.WithServer("production"),
691709
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
692710
)
693711

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,4 +548,14 @@ Based on:
548548
### Generated
549549
- [go v0.11.1] .
550550
### Releases
551-
- [Go v0.11.1] https://github.com/polarsource/polar-go/releases/tag/v0.11.1 - .
551+
- [Go v0.11.1] https://github.com/polarsource/polar-go/releases/tag/v0.11.1 - .
552+
553+
## 2025-11-04 00:27:37
554+
### Changes
555+
Based on:
556+
- OpenAPI Doc
557+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
558+
### Generated
559+
- [go v0.12.0] .
560+
### Releases
561+
- [Go v0.12.0] https://github.com/polarsource/polar-go/releases/tag/v0.12.0 - .

0 commit comments

Comments
 (0)