Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 53 additions & 37 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ generation:
persistentEdits: {}
versioningStrategy: automatic
python:
version: 0.30.1
version: 0.30.2
additionalDependencies:
dev:
pydantic-ai-slim: ^0.1.0
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ speakeasyVersion: 1.648.0
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:9de956700748d4ba74ceab55071b988d29ff7e364d0b08547c4d2dd9da6a5c59
sourceBlobDigest: sha256:489987e5f6a3eec64ceed3ce48910664ac321fd652ba273a30a585b6cc27eee9
sourceRevisionDigest: sha256:9ab91accb8d3efc0630644c8fe104b53653eff0a6ea5e8296983d7de00c688e1
sourceBlobDigest: sha256:6d264b9f436415c3543d68a902fb1613d09947a6328c0e39400879ffc58c6ad2
tags:
- latest
- speakeasy-sdk-regen-1772756675
- speakeasy-sdk-regen-1773274673
- 0.1.0
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:9de956700748d4ba74ceab55071b988d29ff7e364d0b08547c4d2dd9da6a5c59
sourceBlobDigest: sha256:489987e5f6a3eec64ceed3ce48910664ac321fd652ba273a30a585b6cc27eee9
sourceRevisionDigest: sha256:9ab91accb8d3efc0630644c8fe104b53653eff0a6ea5e8296983d7de00c688e1
sourceBlobDigest: sha256:6d264b9f436415c3543d68a902fb1613d09947a6328c0e39400879ffc58c6ad2
codeSamplesNamespace: polar-oas-py-code-samples
codeSamplesRevisionDigest: sha256:095bb2040067efcbeb7e8a31d6492c882ef0f308671348f4c0d76e108ecdaded
codeSamplesRevisionDigest: sha256:d52428fca3e177de7671ff37f875b969f693f3a3886377d91566dc18c233a13e
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ with Polar(
* [`PolarError`](./src/polar_sdk/models/polarerror.py): The base class for HTTP error responses.
* [`HTTPValidationError`](./src/polar_sdk/models/httpvalidationerror.py): Validation Error. Status code `422`. *

<details><summary>Less common errors (23)</summary>
<details><summary>Less common errors (24)</summary>

<br />

Expand All @@ -596,6 +596,7 @@ with Polar(
* [`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.*
* [`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.*
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 169 methods.*
* [`PaymentFailed`](./src/polar_sdk/models/paymentfailed.py): Payment required to apply the subscription update. Status code `402`. Applicable to 2 of 169 methods.*
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 169 methods.*
* [`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.*
* [`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.*
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1053,4 +1053,14 @@ Based on:
### Generated
- [python v0.30.1] .
### Releases
- [PyPI v0.30.1] https://pypi.org/project/polar-sdk/0.30.1 - .
- [PyPI v0.30.1] https://pypi.org/project/polar-sdk/0.30.1 - .

## 2026-03-13 00:20:03
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.30.2] .
### Releases
- [PyPI v0.30.2] https://pypi.org/project/polar-sdk/0.30.2 - .
16 changes: 8 additions & 8 deletions codeSamples.yaml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/models/customersubscription.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@
| `customer_cancellation_comment` | *Nullable[str]* | :heavy_check_mark: | N/A | |
| `product` | [models.CustomerSubscriptionProduct](../models/customersubscriptionproduct.md) | :heavy_check_mark: | N/A | |
| `prices` | List[[models.CustomerSubscriptionPrices](../models/customersubscriptionprices.md)] | :heavy_check_mark: | List of enabled prices for the subscription. | |
| `meters` | List[[models.CustomerSubscriptionMeter](../models/customersubscriptionmeter.md)] | :heavy_check_mark: | List of meters associated with the subscription. | |
| `meters` | List[[models.CustomerSubscriptionMeter](../models/customersubscriptionmeter.md)] | :heavy_check_mark: | List of meters associated with the subscription. | |
| `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. | |
24 changes: 13 additions & 11 deletions docs/models/organizationcustomeremailsettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@

## Fields

| Field | Type | Required | Description |
| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
| `order_confirmation` | *bool* | :heavy_check_mark: | N/A |
| `subscription_cancellation` | *bool* | :heavy_check_mark: | N/A |
| `subscription_confirmation` | *bool* | :heavy_check_mark: | N/A |
| `subscription_cycled` | *bool* | :heavy_check_mark: | N/A |
| `subscription_cycled_after_trial` | *bool* | :heavy_check_mark: | N/A |
| `subscription_past_due` | *bool* | :heavy_check_mark: | N/A |
| `subscription_revoked` | *bool* | :heavy_check_mark: | N/A |
| `subscription_uncanceled` | *bool* | :heavy_check_mark: | N/A |
| `subscription_updated` | *bool* | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| `order_confirmation` | *bool* | :heavy_check_mark: | N/A |
| `subscription_cancellation` | *bool* | :heavy_check_mark: | N/A |
| `subscription_confirmation` | *bool* | :heavy_check_mark: | N/A |
| `subscription_cycled` | *bool* | :heavy_check_mark: | N/A |
| `subscription_cycled_after_trial` | *bool* | :heavy_check_mark: | N/A |
| `subscription_past_due` | *bool* | :heavy_check_mark: | N/A |
| `subscription_renewal_reminder` | *bool* | :heavy_check_mark: | N/A |
| `subscription_revoked` | *bool* | :heavy_check_mark: | N/A |
| `subscription_trial_conversion_reminder` | *bool* | :heavy_check_mark: | N/A |
| `subscription_uncanceled` | *bool* | :heavy_check_mark: | N/A |
| `subscription_updated` | *bool* | :heavy_check_mark: | N/A |
9 changes: 9 additions & 0 deletions docs/models/paymentfailed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# PaymentFailed


## Fields

| Field | Type | Required | Description | Example |
| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -------------------------- |
| `error` | *Literal["PaymentFailed"]* | :heavy_check_mark: | N/A | PaymentFailed |
| `detail` | *str* | :heavy_check_mark: | N/A | |
15 changes: 15 additions & 0 deletions docs/models/pendingsubscriptionupdate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# PendingSubscriptionUpdate

Pending update to be applied to a subscription at the beginning of the next period.


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Creation timestamp of the object. |
| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Last modification timestamp of the object. |
| `id` | *str* | :heavy_check_mark: | The ID of the object. |
| `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. |
| `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. |
| `seats` | *Nullable[int]* | :heavy_check_mark: | Number of seats to apply to the subscription. If `null`, the number of seats won't be changed. |
Loading