Skip to content

Commit ba9bb3c

Browse files
committed
## Python SDK Changes Detected:
* `polar._endpointsubscription_created_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_updated_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_active_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_canceled_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_uncanceled_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_revoked_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointsubscription_past_due_post()`: * `request.data.pending_update` **Added** **Breaking** ⚠️ * `polar._endpointorganization_updated_post()`: * `request.data.customer_email_settings` **Changed** **Breaking** ⚠️ * `polar.organizations.update()`: * `request.organization_update.customer_email_settings` **Changed** **Breaking** ⚠️ * `response.customer_email_settings` **Changed** * `polar.organizations.create()`: * `request.customer_email_settings` **Changed** **Breaking** ⚠️ * `response.customer_email_settings` **Changed** * `polar.organizations.get()`: `response.customer_email_settings` **Changed** * `polar.organizations.list()`: `response.items.[].customer_email_settings` **Changed** * `polar.subscriptions.list()`: `response.items.[].pending_update` **Added** * `polar.subscriptions.create()`: `response.pending_update` **Added** * `polar.subscriptions.get()`: `response.pending_update` **Added** * `polar.subscriptions.revoke()`: `response.pending_update` **Added** * `polar.subscriptions.update()`: * `response.pending_update` **Added** * `error.status[402]` **Added** * `polar.customer_portal.seats.list_claimed_subscriptions()`: `response.items.[].pending_update` **Added** * `polar.customer_portal.subscriptions.list()`: `response.items.[].pending_update` **Added** * `polar.customer_portal.subscriptions.get()`: `response.pending_update` **Added** * `polar.customer_portal.subscriptions.cancel()`: `response.pending_update` **Added** * `polar.customer_portal.subscriptions.update()`: * `response.pending_update` **Added** * `error.status[402]` **Added**
1 parent 405c853 commit ba9bb3c

23 files changed

Lines changed: 296 additions & 74 deletions

.speakeasy/gen.lock

Lines changed: 53 additions & 37 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
@@ -31,7 +31,7 @@ generation:
3131
persistentEdits: {}
3232
versioningStrategy: automatic
3333
python:
34-
version: 0.30.1
34+
version: 0.30.2
3535
additionalDependencies:
3636
dev:
3737
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:9de956700748d4ba74ceab55071b988d29ff7e364d0b08547c4d2dd9da6a5c59
6-
sourceBlobDigest: sha256:489987e5f6a3eec64ceed3ce48910664ac321fd652ba273a30a585b6cc27eee9
5+
sourceRevisionDigest: sha256:9ab91accb8d3efc0630644c8fe104b53653eff0a6ea5e8296983d7de00c688e1
6+
sourceBlobDigest: sha256:6d264b9f436415c3543d68a902fb1613d09947a6328c0e39400879ffc58c6ad2
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1772756675
9+
- speakeasy-sdk-regen-1773274673
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:9de956700748d4ba74ceab55071b988d29ff7e364d0b08547c4d2dd9da6a5c59
16-
sourceBlobDigest: sha256:489987e5f6a3eec64ceed3ce48910664ac321fd652ba273a30a585b6cc27eee9
15+
sourceRevisionDigest: sha256:9ab91accb8d3efc0630644c8fe104b53653eff0a6ea5e8296983d7de00c688e1
16+
sourceBlobDigest: sha256:6d264b9f436415c3543d68a902fb1613d09947a6328c0e39400879ffc58c6ad2
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:095bb2040067efcbeb7e8a31d6492c882ef0f308671348f4c0d76e108ecdaded
18+
codeSamplesRevisionDigest: sha256:d52428fca3e177de7671ff37f875b969f693f3a3886377d91566dc18c233a13e
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
@@ -576,7 +576,7 @@ with Polar(
576576
* [`PolarError`](./src/polar_sdk/models/polarerror.py): The base class for HTTP error responses.
577577
* [`HTTPValidationError`](./src/polar_sdk/models/httpvalidationerror.py): Validation Error. Status code `422`. *
578578

579-
<details><summary>Less common errors (23)</summary>
579+
<details><summary>Less common errors (24)</summary>
580580

581581
<br />
582582

@@ -596,6 +596,7 @@ with Polar(
596596
* [`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 169 methods.*
597597
* [`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 169 methods.*
598598
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 169 methods.*
599+
* [`PaymentFailed`](./src/polar_sdk/models/paymentfailed.py): Payment required to apply the subscription update. Status code `402`. Applicable to 2 of 169 methods.*
599600
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 169 methods.*
600601
* [`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 169 methods.*
601602
* [`NotPaidOrder`](./src/polar_sdk/models/notpaidorder.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 169 methods.*

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,4 +1053,14 @@ Based on:
10531053
### Generated
10541054
- [python v0.30.1] .
10551055
### Releases
1056-
- [PyPI v0.30.1] https://pypi.org/project/polar-sdk/0.30.1 - .
1056+
- [PyPI v0.30.1] https://pypi.org/project/polar-sdk/0.30.1 - .
1057+
1058+
## 2026-03-13 00:20:03
1059+
### Changes
1060+
Based on:
1061+
- OpenAPI Doc
1062+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
1063+
### Generated
1064+
- [python v0.30.2] .
1065+
### Releases
1066+
- [PyPI v0.30.2] https://pypi.org/project/polar-sdk/0.30.2 - .

codeSamples.yaml

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

docs/models/customersubscription.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@
3131
| `customer_cancellation_comment` | *Nullable[str]* | :heavy_check_mark: | N/A | |
3232
| `product` | [models.CustomerSubscriptionProduct](../models/customersubscriptionproduct.md) | :heavy_check_mark: | N/A | |
3333
| `prices` | List[[models.CustomerSubscriptionPrices](../models/customersubscriptionprices.md)] | :heavy_check_mark: | List of enabled prices for the subscription. | |
34-
| `meters` | List[[models.CustomerSubscriptionMeter](../models/customersubscriptionmeter.md)] | :heavy_check_mark: | List of meters associated with the subscription. | |
34+
| `meters` | List[[models.CustomerSubscriptionMeter](../models/customersubscriptionmeter.md)] | :heavy_check_mark: | List of meters associated with the subscription. | |
35+
| `pending_update` | [Nullable[models.PendingSubscriptionUpdate]](../models/pendingsubscriptionupdate.md) | :heavy_check_mark: | Pending subscription update that will be applied at the beginning of the next period. If `null`, there is no pending update. | |

docs/models/organizationcustomeremailsettings.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
8-
| `order_confirmation` | *bool* | :heavy_check_mark: | N/A |
9-
| `subscription_cancellation` | *bool* | :heavy_check_mark: | N/A |
10-
| `subscription_confirmation` | *bool* | :heavy_check_mark: | N/A |
11-
| `subscription_cycled` | *bool* | :heavy_check_mark: | N/A |
12-
| `subscription_cycled_after_trial` | *bool* | :heavy_check_mark: | N/A |
13-
| `subscription_past_due` | *bool* | :heavy_check_mark: | N/A |
14-
| `subscription_revoked` | *bool* | :heavy_check_mark: | N/A |
15-
| `subscription_uncanceled` | *bool* | :heavy_check_mark: | N/A |
16-
| `subscription_updated` | *bool* | :heavy_check_mark: | N/A |
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
8+
| `order_confirmation` | *bool* | :heavy_check_mark: | N/A |
9+
| `subscription_cancellation` | *bool* | :heavy_check_mark: | N/A |
10+
| `subscription_confirmation` | *bool* | :heavy_check_mark: | N/A |
11+
| `subscription_cycled` | *bool* | :heavy_check_mark: | N/A |
12+
| `subscription_cycled_after_trial` | *bool* | :heavy_check_mark: | N/A |
13+
| `subscription_past_due` | *bool* | :heavy_check_mark: | N/A |
14+
| `subscription_renewal_reminder` | *bool* | :heavy_check_mark: | N/A |
15+
| `subscription_revoked` | *bool* | :heavy_check_mark: | N/A |
16+
| `subscription_trial_conversion_reminder` | *bool* | :heavy_check_mark: | N/A |
17+
| `subscription_uncanceled` | *bool* | :heavy_check_mark: | N/A |
18+
| `subscription_updated` | *bool* | :heavy_check_mark: | N/A |

docs/models/paymentfailed.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# PaymentFailed
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -------------------------- |
8+
| `error` | *Literal["PaymentFailed"]* | :heavy_check_mark: | N/A | PaymentFailed |
9+
| `detail` | *str* | :heavy_check_mark: | N/A | |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# PendingSubscriptionUpdate
2+
3+
Pending update to be applied to a subscription at the beginning of the next period.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
10+
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Creation timestamp of the object. |
11+
| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Last modification timestamp of the object. |
12+
| `id` | *str* | :heavy_check_mark: | The ID of the object. |
13+
| `applies_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time when the subscription update will be applied. |
14+
| `product_id` | *Nullable[str]* | :heavy_check_mark: | ID of the new product to apply to the subscription. If `null`, the product won't be changed. |
15+
| `seats` | *Nullable[int]* | :heavy_check_mark: | Number of seats to apply to the subscription. If `null`, the number of seats won't be changed. |

0 commit comments

Comments
 (0)