Skip to content

Commit 06ac2bd

Browse files
committed
## Go SDK Changes Detected:
* `Polar.CustomerPortal.Orders.Update()`: `response.Product.Organization` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Organizations.Get()`: `response.Organization` **Changed** **Breaking** ⚠️ * `Polar.EndpointorganizationUpdatedPost()`: * `request.Request.Data` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Subscriptions.Update()`: `response.Product.Organization` **Changed** **Breaking** ⚠️ * `Polar.Organizations.Create()`: * `request.Request.SubscriptionSettings.PreventTrialAbuse` **Added** **Breaking** ⚠️ * `response` **Changed** * `Polar.CustomerPortal.Subscriptions.Cancel()`: `response.Product.Organization` **Changed** **Breaking** ⚠️ * `Polar.Organizations.Update()`: * `request.OrganizationUpdate.SubscriptionSettings.PreventTrialAbuse` **Added** **Breaking** ⚠️ * `response` **Changed** * `Polar.CustomerPortal.Subscriptions.Get()`: `response.Product.Organization` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Subscriptions.List()`: `response.Items.[].Product.Organization` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Benefit-Grants.Get()`: `response.[customerBenefitGrantDiscord].Benefit.Organization` **Changed** **Breaking** ⚠️ * `Polar.EndpointcheckoutCreatedPost()`: * `request.Request.Data.AllowTrial` **Added** **Breaking** ⚠️ * `Polar.CustomerPortal.Orders.Get()`: `response.Product.Organization` **Changed** **Breaking** ⚠️ * `Polar.Checkouts.ClientGet()`: `response` **Changed** **Breaking** ⚠️ * `Polar.Checkouts.ClientUpdate()`: * `request.CheckoutUpdatePublic.AllowTrial` **Added** * `response` **Changed** **Breaking** ⚠️ * `error.[trialAlreadyRedeemed]` **Added** * `Polar.EndpointcheckoutUpdatedPost()`: * `request.Request.Data.AllowTrial` **Added** **Breaking** ⚠️ * `Polar.CustomerPortal.Orders.List()`: `response.Items.[].Product.Organization` **Changed** **Breaking** ⚠️ * `Polar.Checkouts.ClientConfirm()`: * `request.CheckoutConfirmStripe.AllowTrial` **Added** * `response` **Changed** **Breaking** ⚠️ * `error.[trialAlreadyRedeemed]` **Added** * `Polar.CustomerPortal.Benefit-Grants.Update()`: `response.[customerBenefitGrantLicenseKeys].Benefit.Organization` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Seats.ListClaimedSubscriptions()`: `response.[].Product.Organization` **Changed** **Breaking** ⚠️ * `Polar.CustomerPortal.Benefit-Grants.List()`: `response.Items.[].[customerBenefitGrantLicenseKeys].Benefit.Organization` **Changed** **Breaking** ⚠️ * `Polar.Checkouts.Update()`: * `request.CheckoutUpdate.AllowTrial` **Added** * `response.AllowTrial` **Added** * `error.[trialAlreadyRedeemed]` **Added** * `Polar.Checkouts.Get()`: `response.AllowTrial` **Added** * `Polar.Checkouts.Create()`: * `request.Request.AllowTrial` **Added** * `response.AllowTrial` **Added** * `Polar.Checkouts.List()`: `response.Items.[].AllowTrial` **Added** * `Polar.Subscriptions.List()`: * `request.Request.CancelAtPeriodEnd` **Added** * `Polar.Organizations.Get()`: `response` **Changed** * `Polar.Organizations.List()`: `response.Items.[]` **Changed** * `Polar.Events.List()`: * `request.Request.Hierarchical` **Added** * `response.Items.[]` **Changed** * `Polar.Events.Get()`: `response` **Changed**
1 parent 9bf31a4 commit 06ac2bd

File tree

97 files changed

+855
-205
lines changed

Some content is hidden

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

97 files changed

+855
-205
lines changed

.speakeasy/gen.lock

Lines changed: 44 additions & 35 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ generation:
2222
hoistGlobalSecurity: true
2323
schemas:
2424
allOfMergeStrategy: shallowMerge
25+
requestBodyFieldName: ""
2526
tests:
2627
generateTests: true
2728
generateNewTests: false
2829
skipResponseBodyAssertions: false
2930
go:
30-
version: 0.12.0
31+
version: 0.12.1
3132
additionalDependencies: {}
3233
allowUnknownFieldsInWeakUnions: true
3334
baseErrorName: PolarError

.speakeasy/workflow.lock

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

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,4 +558,14 @@ Based on:
558558
### Generated
559559
- [go v0.12.0] .
560560
### Releases
561-
- [Go v0.12.0] https://github.com/polarsource/polar-go/releases/tag/v0.12.0 - .
561+
- [Go v0.12.0] https://github.com/polarsource/polar-go/releases/tag/v0.12.0 - .
562+
563+
## 2025-11-12 00:28:29
564+
### Changes
565+
Based on:
566+
- OpenAPI Doc
567+
- Speakeasy CLI 1.653.2 (2.748.4) https://github.com/speakeasy-api/speakeasy
568+
### Generated
569+
- [go v0.12.1] .
570+
### Releases
571+
- [Go v0.12.1] https://github.com/polarsource/polar-go/releases/tag/v0.12.1 - .

codeSamples.yaml

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

docs/models/apierrors/checkoutforbiddenerror.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ checkoutForbiddenError := apierrors.CreateCheckoutForbiddenErrorNotOpenCheckout(
2121
checkoutForbiddenError := apierrors.CreateCheckoutForbiddenErrorPaymentNotReady(components.PaymentNotReady{/* values here */})
2222
```
2323

24+
### TrialAlreadyRedeemed
25+
26+
```go
27+
checkoutForbiddenError := apierrors.CreateCheckoutForbiddenErrorTrialAlreadyRedeemed(components.TrialAlreadyRedeemed{/* values here */})
28+
```
29+

docs/models/components/benefitcustomsubscriber.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
| `Deletable` | *bool* | :heavy_check_mark: | Whether the benefit is deletable. |
1515
| `OrganizationID` | *string* | :heavy_check_mark: | The ID of the organization owning the benefit. |
1616
| `Metadata` | map[string][components.BenefitCustomSubscriberMetadata](../../models/components/benefitcustomsubscribermetadata.md) | :heavy_check_mark: | N/A |
17-
| `Organization` | [components.Organization](../../models/components/organization.md) | :heavy_check_mark: | N/A |
17+
| `Organization` | [components.BenefitSubscriberOrganization](../../models/components/benefitsubscriberorganization.md) | :heavy_check_mark: | N/A |
1818
| `Properties` | [components.BenefitCustomSubscriberProperties](../../models/components/benefitcustomsubscriberproperties.md) | :heavy_check_mark: | Properties available to subscribers for a benefit of type `custom`. |

docs/models/components/benefitcycledevent.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ An event created by Polar when a benefit is cycled.
1414
| `Customer` | [components.Customer](../../models/components/customer.md) | :heavy_check_mark: | The customer associated with the event. | |
1515
| `ExternalCustomerID` | *string* | :heavy_check_mark: | ID of the customer in your system associated with the event. | |
1616
| `ChildCount` | **int64* | :heavy_minus_sign: | Number of direct child events linked to this event. | |
17+
| `ParentID` | **string* | :heavy_minus_sign: | The ID of the parent event. | |
1718
| `Source` | *string* | :heavy_check_mark: | The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API. | |
1819
| `Name` | *string* | :heavy_check_mark: | The name of the event. | |
1920
| `Metadata` | [components.BenefitGrantMetadata](../../models/components/benefitgrantmetadata.md) | :heavy_check_mark: | N/A | |

docs/models/components/benefitdiscordsubscriber.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
| `Deletable` | *bool* | :heavy_check_mark: | Whether the benefit is deletable. |
1515
| `OrganizationID` | *string* | :heavy_check_mark: | The ID of the organization owning the benefit. |
1616
| `Metadata` | map[string][components.BenefitDiscordSubscriberMetadata](../../models/components/benefitdiscordsubscribermetadata.md) | :heavy_check_mark: | N/A |
17-
| `Organization` | [components.Organization](../../models/components/organization.md) | :heavy_check_mark: | N/A |
17+
| `Organization` | [components.BenefitSubscriberOrganization](../../models/components/benefitsubscriberorganization.md) | :heavy_check_mark: | N/A |
1818
| `Properties` | [components.BenefitDiscordSubscriberProperties](../../models/components/benefitdiscordsubscriberproperties.md) | :heavy_check_mark: | Properties available to subscribers for a benefit of type `discord`. |

docs/models/components/benefitdownloadablessubscriber.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
| `Deletable` | *bool* | :heavy_check_mark: | Whether the benefit is deletable. |
1515
| `OrganizationID` | *string* | :heavy_check_mark: | The ID of the organization owning the benefit. |
1616
| `Metadata` | map[string][components.BenefitDownloadablesSubscriberMetadata](../../models/components/benefitdownloadablessubscribermetadata.md) | :heavy_check_mark: | N/A |
17-
| `Organization` | [components.Organization](../../models/components/organization.md) | :heavy_check_mark: | N/A |
17+
| `Organization` | [components.BenefitSubscriberOrganization](../../models/components/benefitsubscriberorganization.md) | :heavy_check_mark: | N/A |
1818
| `Properties` | [components.BenefitDownloadablesSubscriberProperties](../../models/components/benefitdownloadablessubscriberproperties.md) | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)