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
895 changes: 491 additions & 404 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ generation:
persistentEdits: {}
versioningStrategy: automatic
python:
version: 0.31.7
version: 0.32.0
additionalDependencies:
dev:
pydantic-ai-slim: ^0.1.0
Expand All @@ -54,6 +54,7 @@ python:
description: Polar SDK for Python
enableCustomCodeRegions: true
enumFormat: enum
errorSchemaValidation: true
eventStreamClassNames:
async: EventStreamAsync
sync: EventStream
Expand Down Expand Up @@ -92,6 +93,7 @@ python:
pytestTimeout: 0
rawResponseHelpers: false
responseFormat: flat
responseSchemaValidation: true
sseFlatResponse: false
templateVersion: v2
useAsyncHooks: false
14 changes: 7 additions & 7 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:2e876fec381971a288210e5d8709f9f5d1ce5fdceb4ab9f9081a12d2706b66a3
sourceBlobDigest: sha256:121b4b199951de0444a9d01f4b9ae901c6f73bedd842db8c73380dfdbd1b7108
sourceRevisionDigest: sha256:dba06363d9ec8070a0025b475106d963c0bca285d58dea3b239594c67defe82b
sourceBlobDigest: sha256:1705379f8e419d8e788708d17e7d08e7218f7b3fc52cc42d23e0b5cea58fcc35
tags:
- latest
- speakeasy-sdk-regen-1780965532
- 0.1.0
- speakeasy-sdk-regen-1781311562
- 2026-04
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:2e876fec381971a288210e5d8709f9f5d1ce5fdceb4ab9f9081a12d2706b66a3
sourceBlobDigest: sha256:121b4b199951de0444a9d01f4b9ae901c6f73bedd842db8c73380dfdbd1b7108
sourceRevisionDigest: sha256:dba06363d9ec8070a0025b475106d963c0bca285d58dea3b239594c67defe82b
sourceBlobDigest: sha256:1705379f8e419d8e788708d17e7d08e7218f7b3fc52cc42d23e0b5cea58fcc35
codeSamplesNamespace: polar-oas-py-code-samples
codeSamplesRevisionDigest: sha256:17f9306179ab5bf2b495f6c13089ff02e295fbb688aac7bbbbd89f340615971d
codeSamplesRevisionDigest: sha256:5e1858210aec097b56c8766bdb22084cdca5486beb6d6bd3d353e14cb5c7aad0
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
90 changes: 45 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ of crashing on a `pydantic.ValidationError`.
* [activate](docs/sdks/polarlicensekeys/README.md#activate) - Activate License Key
* [deactivate](docs/sdks/polarlicensekeys/README.md#deactivate) - Deactivate License Key

#### [customer_portal.members](docs/sdks/polarmembers/README.md)
#### [customer_portal.members](docs/sdks/polarcustomerportalmembers/README.md)

* [list_members](docs/sdks/polarmembers/README.md#list_members) - List Members
* [add_member](docs/sdks/polarmembers/README.md#add_member) - Add Member
* [update_member](docs/sdks/polarmembers/README.md#update_member) - Update Member
* [remove_member](docs/sdks/polarmembers/README.md#remove_member) - Remove Member
* [list_members](docs/sdks/polarcustomerportalmembers/README.md#list_members) - List Members
* [add_member](docs/sdks/polarcustomerportalmembers/README.md#add_member) - Add Member
* [update_member](docs/sdks/polarcustomerportalmembers/README.md#update_member) - Update Member
* [remove_member](docs/sdks/polarcustomerportalmembers/README.md#remove_member) - Remove Member

#### [customer_portal.orders](docs/sdks/polarorders/README.md)

Expand Down Expand Up @@ -355,6 +355,17 @@ of crashing on a `pydantic.ValidationError`.
* [list_payment_methods](docs/sdks/customers/README.md#list_payment_methods) - List Customer Payment Methods
* [list_payment_methods_external](docs/sdks/customers/README.md#list_payment_methods_external) - List Customer Payment Methods by External ID

#### [customers.members](docs/sdks/polarmembers/README.md)

* [create](docs/sdks/polarmembers/README.md#create) - Create Member
* [create_external](docs/sdks/polarmembers/README.md#create_external) - Create Member by Customer External ID
* [get](docs/sdks/polarmembers/README.md#get) - Get Member
* [update](docs/sdks/polarmembers/README.md#update) - Update Member
* [delete](docs/sdks/polarmembers/README.md#delete) - Delete Member
* [get_external](docs/sdks/polarmembers/README.md#get_external) - Get Member by External ID
* [update_external](docs/sdks/polarmembers/README.md#update_external) - Update Member by External ID
* [delete_external](docs/sdks/polarmembers/README.md#delete_external) - Delete Member by External ID

### [discounts](docs/sdks/discounts/README.md)

* [list](docs/sdks/discounts/README.md#list) - List Discounts
Expand All @@ -367,6 +378,7 @@ of crashing on a `pydantic.ValidationError`.

* [list](docs/sdks/disputes/README.md#list) - List Disputes
* [get](docs/sdks/disputes/README.md#get) - Get Dispute
* [accept](docs/sdks/disputes/README.md#accept) - Accept Dispute

### [event_types](docs/sdks/eventtypes/README.md)

Expand Down Expand Up @@ -401,13 +413,6 @@ of crashing on a `pydantic.ValidationError`.
### [members](docs/sdks/members/README.md)

* [list_members](docs/sdks/members/README.md#list_members) - List Members
* [create_member](docs/sdks/members/README.md#create_member) - Create Member
* [get_member](docs/sdks/members/README.md#get_member) - Get Member
* [update_member](docs/sdks/members/README.md#update_member) - Update Member
* [delete_member](docs/sdks/members/README.md#delete_member) - Delete Member
* [get_member_by_external_id](docs/sdks/members/README.md#get_member_by_external_id) - Get Member by External ID
* [update_member_by_external_id](docs/sdks/members/README.md#update_member_by_external_id) - Update Member by External ID
* [delete_member_by_external_id](docs/sdks/members/README.md#delete_member_by_external_id) - Delete Member by External ID

### [meters](docs/sdks/meters/README.md)

Expand Down Expand Up @@ -455,13 +460,6 @@ of crashing on a `pydantic.ValidationError`.
* [invoice](docs/sdks/orders/README.md#invoice) - Get Order Invoice
* [receipt](docs/sdks/orders/README.md#receipt) - Get Order Receipt

### [organization_access_tokens](docs/sdks/organizationaccesstokens/README.md)

* [list](docs/sdks/organizationaccesstokens/README.md#list) - List
* [create](docs/sdks/organizationaccesstokens/README.md#create) - Create
* [update](docs/sdks/organizationaccesstokens/README.md#update) - Update
* [delete](docs/sdks/organizationaccesstokens/README.md#delete) - Delete

### [organizations](docs/sdks/organizations/README.md)

* [list_organizations](docs/sdks/organizations/README.md#list_organizations) - List Organizations
Expand Down Expand Up @@ -608,7 +606,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 (30)</summary>
<details><summary>Less common errors (32)</summary>

<br />

Expand All @@ -619,31 +617,33 @@ with Polar(


**Inherit from [`PolarError`](./src/polar_sdk/models/polarerror.py)**:
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 90 of 187 methods.*
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 187 methods.*
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 187 methods.*
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 187 methods.*
* [`PaymentFailed`](./src/polar_sdk/models/paymentfailed.py): Status code `402`. Applicable to 3 of 187 methods.*
* [`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 187 methods.*
* [`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 187 methods.*
* [`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 187 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 187 methods.*
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 187 methods.*
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 187 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 187 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 187 methods.*
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 187 methods.*
* [`PaymentMethodSetupFailed`](./src/polar_sdk/models/paymentmethodsetupfailed.py): The card was declined while setting up the payment method. Status code `400`. Applicable to 1 of 187 methods.*
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 187 methods.*
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 187 methods.*
* [`PaymentActionRequired`](./src/polar_sdk/models/paymentactionrequired.py): The charge failed, or requires customer authentication (e.g. a 3DS challenge) that can't be completed off-session. Status code `402`. Applicable to 1 of 187 methods.*
* [`OffSessionChargesNotEnabled`](./src/polar_sdk/models/offsessionchargesnotenabled.py): Off-session charges are not enabled for this organization, or its account can't currently accept payments. Status code `403`. Applicable to 1 of 187 methods.*
* [`OrganizationNotReadyForPayments`](./src/polar_sdk/models/organizationnotreadyforpayments.py): Off-session charges are not enabled for this organization, or its account can't currently accept payments. Status code `403`. Applicable to 1 of 187 methods.*
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 187 methods.*
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 187 methods.*
* [`OrderNotDraft`](./src/polar_sdk/models/ordernotdraft.py): The order is not in `draft` status. Status code `412`. Applicable to 1 of 187 methods.*
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 187 methods.*
* [`ManualRetryLimitExceeded`](./src/polar_sdk/models/manualretrylimitexceeded.py): Manual retry limit exceeded. Status code `429`. Applicable to 1 of 187 methods.*
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 94 of 185 methods.*
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 12 of 185 methods.*
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 185 methods.*
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 185 methods.*
* [`AmbiguousExternalCustomerID`](./src/polar_sdk/models/ambiguousexternalcustomerid.py): The external customer ID matches customers in several accessible organizations. Status code `409`. Applicable to 4 of 185 methods.*
* [`PaymentFailed`](./src/polar_sdk/models/paymentfailed.py): Status code `402`. Applicable to 3 of 185 methods.*
* [`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 185 methods.*
* [`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 185 methods.*
* [`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 185 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 185 methods.*
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 185 methods.*
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 185 methods.*
* [`OrderNotEligibleForInvoice`](./src/polar_sdk/models/ordernoteligibleforinvoice.py): Order is not eligible for invoice generation (invalid status). Status code `409`. Applicable to 2 of 185 methods.*
* [`MissingInvoiceBillingDetails`](./src/polar_sdk/models/missinginvoicebillingdetails.py): Order is missing billing name or address. Status code `422`. Applicable to 2 of 185 methods.*
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 185 methods.*
* [`PaymentMethodSetupFailed`](./src/polar_sdk/models/paymentmethodsetupfailed.py): The card was declined while setting up the payment method. Status code `400`. Applicable to 1 of 185 methods.*
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 185 methods.*
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 185 methods.*
* [`PaymentActionRequired`](./src/polar_sdk/models/paymentactionrequired.py): The charge failed, or requires customer authentication (e.g. a 3DS challenge) that can't be completed off-session. Status code `402`. Applicable to 1 of 185 methods.*
* [`OffSessionChargesNotEnabled`](./src/polar_sdk/models/offsessionchargesnotenabled.py): Off-session charges are not enabled for this organization, or its account can't currently accept payments. Status code `403`. Applicable to 1 of 185 methods.*
* [`OrganizationNotReadyForPayments`](./src/polar_sdk/models/organizationnotreadyforpayments.py): Off-session charges are not enabled for this organization, or its account can't currently accept payments. Status code `403`. Applicable to 1 of 185 methods.*
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 185 methods.*
* [`DisputeNotOpenError`](./src/polar_sdk/models/disputenotopenerror.py): Conflict. Status code `409`. Applicable to 1 of 185 methods.*
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 185 methods.*
* [`OrderNotDraft`](./src/polar_sdk/models/ordernotdraft.py): The order is not in `draft` status. Status code `412`. Applicable to 1 of 185 methods.*
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 185 methods.*
* [`ManualRetryLimitExceeded`](./src/polar_sdk/models/manualretrylimitexceeded.py): Manual retry limit exceeded. Status code `429`. Applicable to 1 of 185 methods.*
* [`ResponseValidationError`](./src/polar_sdk/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.

</details>
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1143,4 +1143,14 @@ Based on:
### Generated
- [python v0.31.7] .
### Releases
- [PyPI v0.31.7] https://pypi.org/project/polar-sdk/0.31.7 - .
- [PyPI v0.31.7] https://pypi.org/project/polar-sdk/0.31.7 - .

## 2026-06-30 00:40:34
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.32.0] .
### Releases
- [PyPI v0.32.0] https://pypi.org/project/polar-sdk/0.32.0 - .
Loading