Skip to content

Commit ee3c4fa

Browse files
committed
## Python SDK Changes Detected:
* `polar.customer_portal.orders.list()`: `response.items.[].product.organization` **Changed** **Breaking** ⚠️ * `polar.customer_portal.orders.get()`: `response.product.organization` **Changed** **Breaking** ⚠️ * `polar._endpointorganization_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar.events.get()`: `response` **Changed** **Breaking** ⚠️ * `polar.organizations.create()`: * `request.subscription_settings.prevent_trial_abuse` **Added** **Breaking** ⚠️ * `response` **Changed** * `polar.events.list()`: * `request.hierarchical` **Added** * `response.items.[]` **Changed** **Breaking** ⚠️ * `polar.organizations.update()`: * `request.organization_update.subscription_settings.prevent_trial_abuse` **Added** **Breaking** ⚠️ * `response` **Changed** * `polar.customer_portal.subscriptions.update()`: `response.product.organization` **Changed** **Breaking** ⚠️ * `polar.customer_portal.subscriptions.cancel()`: `response.product.organization` **Changed** **Breaking** ⚠️ * `polar.customer_portal.subscriptions.get()`: `response.product.organization` **Changed** **Breaking** ⚠️ * `polar.customer_portal.subscriptions.list()`: `response.items.[].product.organization` **Changed** **Breaking** ⚠️ * `polar.customer_portal.organizations.get()`: `response.organization` **Changed** **Breaking** ⚠️ * `polar.customer_portal.orders.update()`: `response.product.organization` **Changed** **Breaking** ⚠️ * `polar.checkouts.client_get()`: `response` **Changed** **Breaking** ⚠️ * `polar._endpointcheckout_updated_post()`: * `request.data.allow_trial` **Added** **Breaking** ⚠️ * `polar.checkouts.client_confirm()`: * `request.checkout_confirm_stripe.allow_trial` **Added** * `response` **Changed** **Breaking** ⚠️ * `error.[trial_already_redeemed]` **Added** * `polar.customer_portal.benefit-grants.get()`: `response.[customer_benefit_grant_meter_credit].benefit.organization` **Changed** **Breaking** ⚠️ * `polar.customer_portal.benefit-grants.list()`: `response.items.[].[customer_benefit_grant_discord].benefit.organization` **Changed** **Breaking** ⚠️ * `polar.checkouts.client_update()`: * `request.checkout_update_public.allow_trial` **Added** * `response` **Changed** **Breaking** ⚠️ * `error.[trial_already_redeemed]` **Added** * `polar.customer_portal.benefit-grants.update()`: `response.[customer_benefit_grant_license_keys].benefit.organization` **Changed** **Breaking** ⚠️ * `polar.customer_portal.seats.list_claimed_subscriptions()`: `response.[].product.organization` **Changed** **Breaking** ⚠️ * `polar._endpointcheckout_created_post()`: * `request.data.allow_trial` **Added** **Breaking** ⚠️ * `polar.checkouts.update()`: * `request.checkout_update.allow_trial` **Added** * `response.allow_trial` **Added** * `error.[trial_already_redeemed]` **Added** * `polar.checkouts.get()`: `response.allow_trial` **Added** * `polar.checkouts.create()`: * `request.allow_trial` **Added** * `response.allow_trial` **Added** * `polar.checkouts.list()`: `response.items.[].allow_trial` **Added** * `polar.webhooks.list_webhook_deliveries()`: `response.items.[].webhook_event.skipped` **Added** * `polar.subscriptions.update()`: * `request.subscription_update.[subscription_update_billing_period]` **Added** * `polar.subscriptions.list()`: `request.cancel_at_period_end` **Added** * `polar.organizations.get()`: `response` **Changed** * `polar.organizations.list()`: `response.items.[]` **Changed**
1 parent 211e1ae commit ee3c4fa

File tree

109 files changed

+1163
-191
lines changed

Some content is hidden

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

109 files changed

+1163
-191
lines changed

.speakeasy/gen.lock

Lines changed: 47 additions & 32 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
@@ -27,7 +27,7 @@ generation:
2727
generateNewTests: false
2828
skipResponseBodyAssertions: false
2929
python:
30-
version: 0.28.0
30+
version: 0.28.2
3131
additionalDependencies:
3232
dev:
3333
pydantic-ai-slim: ^0.1.0

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.648.0
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:c0187c3b97b30297429930c9b97513e82a6fb748fa42bb6ef632b447899f4063
6-
sourceBlobDigest: sha256:64e17fc520f1c7b5bf6663aa5279d8655e70ee7240fa77085f5486aa632e0275
5+
sourceRevisionDigest: sha256:72f7c0fcfe62411481b167d85bdf0e20ac67aef87b2ab9564ced1f261102071a
6+
sourceBlobDigest: sha256:9a5423f12b5d6d4b4113edc0e482f1cd10d03ea441f43e6426efa4bfbcba539a
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1761956132
9+
- speakeasy-sdk-regen-1762301662
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:72f7c0fcfe62411481b167d85bdf0e20ac67aef87b2ab9564ced1f261102071a
16+
sourceBlobDigest: sha256:9a5423f12b5d6d4b4113edc0e482f1cd10d03ea441f43e6426efa4bfbcba539a
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:b5f5b4797959ba0b423abb100d9e63089ed790c5741f080bb93f10d561b59823
18+
codeSamplesRevisionDigest: sha256:b00235db56c46df9a3dc03efc44303465282ce20e3766dd0051c271682e94cdb
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ with Polar(
550550
* [`PolarError`](./src/polar_sdk/models/polarerror.py): The base class for HTTP error responses.
551551
* [`HTTPValidationError`](./src/polar_sdk/models/httpvalidationerror.py): Validation Error. Status code `422`. *
552552

553-
<details><summary>Less common errors (25)</summary>
553+
<details><summary>Less common errors (26)</summary>
554554

555555
<br />
556556

@@ -568,6 +568,7 @@ with Polar(
568568
* [`AlreadyActiveSubscriptionError`](./src/polar_sdk/models/alreadyactivesubscriptionerror.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 155 methods.*
569569
* [`NotOpenCheckout`](./src/polar_sdk/models/notopencheckout.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 155 methods.*
570570
* [`PaymentNotReady`](./src/polar_sdk/models/paymentnotready.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 155 methods.*
571+
* [`TrialAlreadyRedeemed`](./src/polar_sdk/models/trialalreadyredeemed.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 155 methods.*
571572
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 155 methods.*
572573
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 155 methods.*
573574
* [`MissingInvoiceBillingDetails`](./src/polar_sdk/models/missinginvoicebillingdetails.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 155 methods.*

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,4 +983,14 @@ Based on:
983983
### Generated
984984
- [python v0.28.0] .
985985
### Releases
986-
- [PyPI v0.28.0] https://pypi.org/project/polar-sdk/0.28.0 - .
986+
- [PyPI v0.28.0] https://pypi.org/project/polar-sdk/0.28.0 - .
987+
988+
## 2025-11-14 00:13:59
989+
### Changes
990+
Based on:
991+
- OpenAPI Doc
992+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
993+
### Generated
994+
- [python v0.28.2] .
995+
### Releases
996+
- [PyPI v0.28.2] https://pypi.org/project/polar-sdk/0.28.2 - .

codeSamples.yaml

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

docs/models/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
| `organization_id` | *str* | :heavy_check_mark: | The ID of the organization owning the benefit. |
1616
| `metadata` | Dict[str, [models.BenefitCustomSubscriberMetadata](../models/benefitcustomsubscribermetadata.md)] | :heavy_check_mark: | N/A |
17-
| `organization` | [models.Organization](../models/organization.md) | :heavy_check_mark: | N/A |
17+
| `organization` | [models.BenefitSubscriberOrganization](../models/benefitsubscriberorganization.md) | :heavy_check_mark: | N/A |
1818
| `properties` | [models.BenefitCustomSubscriberProperties](../models/benefitcustomsubscriberproperties.md) | :heavy_check_mark: | Properties available to subscribers for a benefit of type `custom`. |

docs/models/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` | [Nullable[models.Customer]](../models/customer.md) | :heavy_check_mark: | The customer associated with the event. | |
1515
| `external_customer_id` | *Nullable[str]* | :heavy_check_mark: | ID of the customer in your system associated with the event. | |
1616
| `child_count` | *Optional[int]* | :heavy_minus_sign: | Number of direct child events linked to this event. | |
17+
| `parent_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the parent event. | |
1718
| `source` | *Literal["system"]* | :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` | *Literal["benefit.cycled"]* | :heavy_check_mark: | The name of the event. | |
1920
| `metadata` | [models.BenefitGrantMetadata](../models/benefitgrantmetadata.md) | :heavy_check_mark: | N/A | |

docs/models/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
| `organization_id` | *str* | :heavy_check_mark: | The ID of the organization owning the benefit. |
1616
| `metadata` | Dict[str, [models.BenefitDiscordSubscriberMetadata](../models/benefitdiscordsubscribermetadata.md)] | :heavy_check_mark: | N/A |
17-
| `organization` | [models.Organization](../models/organization.md) | :heavy_check_mark: | N/A |
17+
| `organization` | [models.BenefitSubscriberOrganization](../models/benefitsubscriberorganization.md) | :heavy_check_mark: | N/A |
1818
| `properties` | [models.BenefitDiscordSubscriberProperties](../models/benefitdiscordsubscriberproperties.md) | :heavy_check_mark: | Properties available to subscribers for a benefit of type `discord`. |

docs/models/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
| `organization_id` | *str* | :heavy_check_mark: | The ID of the organization owning the benefit. |
1616
| `metadata` | Dict[str, [models.BenefitDownloadablesSubscriberMetadata](../models/benefitdownloadablessubscribermetadata.md)] | :heavy_check_mark: | N/A |
17-
| `organization` | [models.Organization](../models/organization.md) | :heavy_check_mark: | N/A |
17+
| `organization` | [models.BenefitSubscriberOrganization](../models/benefitsubscriberorganization.md) | :heavy_check_mark: | N/A |
1818
| `properties` | [models.BenefitDownloadablesSubscriberProperties](../models/benefitdownloadablessubscriberproperties.md) | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)