Skip to content

Commit 9709ea4

Browse files
speakeasybotfrankie567
authored andcommitted
## Python SDK Changes Detected:
* `polar.subscriptions.update()`: `response.product.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.products.list()`: `response.items.[].prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar._endpointcheckout_created_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointorder_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointorder_paid_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar.customer_portal.subscriptions.update()`: `response.product` **Changed** **Breaking** ⚠️ * `polar.customer_portal.subscriptions.cancel()`: `response.product` **Changed** **Breaking** ⚠️ * `polar.customer_portal.subscriptions.get()`: `response.product` **Changed** **Breaking** ⚠️ * `polar.customer_portal.subscriptions.list()`: `response.items.[].product` **Changed** **Breaking** ⚠️ * `polar.customer_portal.organizations.get()`: `response` **Changed** **Breaking** ⚠️ * `polar._endpointorder_refunded_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_created_post()`: * `request.data.product.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_updated_post()`: * `request.data.product.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_active_post()`: * `request.data.product.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_canceled_post()`: * `request.data.product.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_uncanceled_post()`: * `request.data.product.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_revoked_post()`: * `request.data.product.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar._endpointproduct_created_post()`: * `request.data.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar._endpointproduct_updated_post()`: * `request.data.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.customer_portal.orders.update()`: `response` **Changed** **Breaking** ⚠️ * `polar.customer_portal.orders.get()`: `response` **Changed** **Breaking** ⚠️ * `polar.customer_portal.orders.list()`: `response.items.[]` **Changed** **Breaking** ⚠️ * `polar.checkout-links.update()`: `response.products.[].prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.checkout-links.get()`: `response.products.[].prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.checkout-links.create()`: `response.products.[].prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.checkout-links.list()`: `response.items.[].products.[].prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.checkouts.client_confirm()`: * `request.checkout_confirm_stripe.seats` **Added** * `response` **Changed** **Breaking** ⚠️ * `polar.checkouts.client_update()`: * `request.checkout_update_public.seats` **Added** * `response` **Changed** **Breaking** ⚠️ * `polar.checkouts.client_get()`: `response` **Changed** **Breaking** ⚠️ * `polar.subscriptions.list()`: `response.items.[].product.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.subscriptions.get()`: `response.product.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.subscriptions.revoke()`: `response.product.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar._endpointorder_created_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointcheckout_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar.orders.update()`: `response` **Changed** **Breaking** ⚠️ * `polar.products.create()`: * `request` **Changed** **Breaking** ⚠️ * `response.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.products.get()`: `response.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.products.update()`: * `request.product_update.prices.[]` **Changed** **Breaking** ⚠️ * `response.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.products.update_benefits()`: `response.prices.[].[product_price]` **Changed** **Breaking** ⚠️ * `polar.orders.list()`: `response.items.[]` **Changed** **Breaking** ⚠️ * `polar.orders.get()`: `response` **Changed** **Breaking** ⚠️ * `polar.checkouts.update()`: * `request.checkout_update` **Changed** * `response` **Changed** **Breaking** ⚠️ * `polar.checkouts.list()`: `response.items.[]` **Changed** **Breaking** ⚠️ * `polar.checkouts.create()`: * `request` **Changed** * `response` **Changed** **Breaking** ⚠️ * `polar.checkouts.get()`: `response` **Changed** **Breaking** ⚠️ * `polar.customer_portal.benefit-grants.get()`: `response.[customer_benefit_grant_discord].benefit.organization.feature_settings.seat_based_pricing_enabled` **Added** * `polar.discounts.update()`: * `request.discount_update.currency` **Changed** * `polar.organizations.get()`: `response.feature_settings.seat_based_pricing_enabled` **Added** * `polar.organizations.create()`: * `request.feature_settings.seat_based_pricing_enabled` **Added** * `response.feature_settings.seat_based_pricing_enabled` **Added** * `polar.organizations.list()`: `response.items.[].feature_settings.seat_based_pricing_enabled` **Added** * `polar._endpointorganization_updated_post()`: * `request.data.feature_settings.seat_based_pricing_enabled` **Added** * `polar.customer_portal.customer-session.introspect()`: **Added** * `polar.customer_portal.seats.list_claimed_subscriptions()`: **Added** * `polar.customer_portal.benefit-grants.update()`: `response.[customer_benefit_grant_downloadables].benefit.organization.feature_settings.seat_based_pricing_enabled` **Added** * `polar.oauth2.token()`: * `request.[web_token_request]` **Added** * `polar.organizations.update()`: * `request.organization_update.feature_settings.seat_based_pricing_enabled` **Added** * `response.feature_settings.seat_based_pricing_enabled` **Added** * `polar.customer_portal.seats.resend_invitation()`: **Added** * `polar.customer_portal.benefit-grants.list()`: `response.items.[].[customer_benefit_grant_discord].benefit.organization.feature_settings.seat_based_pricing_enabled` **Added** * `polar.customer_portal.seats.revoke_seat()`: **Added** * `polar.customer_portal.seats.assign_seat()`: **Added** * `polar.customer_portal.seats.list_seats()`: **Added** * `polar.oauth2.clients.delete()`: **Added** * `polar.oauth2.clients.update()`: **Added** * `polar.oauth2.clients.get()`: **Added** * `polar.oauth2.clients.create()`: **Added** * `polar.customer-sessions.create()`: * `request` **Changed** * `response.return_url` **Added**
1 parent fbe0864 commit 9709ea4

159 files changed

Lines changed: 4821 additions & 502 deletions

File tree

Some content is hidden

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

.speakeasy/gen.lock

Lines changed: 148 additions & 44 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
@@ -25,7 +25,7 @@ generation:
2525
generateNewTests: false
2626
skipResponseBodyAssertions: false
2727
python:
28-
version: 0.25.0
28+
version: 0.26.0
2929
additionalDependencies:
3030
dev:
3131
pydantic-ai-slim: ^0.1.0

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.631.4
1+
speakeasyVersion: 1.636.3
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:1892991b5bcde6ddaa85ab053285b4b16032e0abd39596d3904bcfd4b0f2b9b5
6-
sourceBlobDigest: sha256:3d99dbf80059f5861879922b94bf7f2ebee0dd1e8c0acdfc80eed643f31aa1f0
5+
sourceRevisionDigest: sha256:a2d47725aa55a8a44bd25f16906f28a8a24e41cd257a068284c1bda91dab06b6
6+
sourceBlobDigest: sha256:5f14ed6fd946b22d43124e554b9bc35847c0385ea345d3d248e6f6831c8d091f
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1758672830
9+
- speakeasy-sdk-regen-1759191232
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:1892991b5bcde6ddaa85ab053285b4b16032e0abd39596d3904bcfd4b0f2b9b5
16-
sourceBlobDigest: sha256:3d99dbf80059f5861879922b94bf7f2ebee0dd1e8c0acdfc80eed643f31aa1f0
15+
sourceRevisionDigest: sha256:a2d47725aa55a8a44bd25f16906f28a8a24e41cd257a068284c1bda91dab06b6
16+
sourceBlobDigest: sha256:5f14ed6fd946b22d43124e554b9bc35847c0385ea345d3d248e6f6831c8d091f
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:bb81bca13bbbe25b9ce7971c18e98a33ca0e48798b8879492f75b52b5045beef
18+
codeSamplesRevisionDigest: sha256:7519a7102d3ac49f7ebf70b023e42654e87943c8e8b525509b7b49b1290f6342
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,6 @@ def webhook():
230230
* [list](docs/sdks/customermeters/README.md#list) - List Customer Meters
231231
* [get](docs/sdks/customermeters/README.md#get) - Get Customer Meter
232232

233-
### [customer_portal](docs/sdks/customerportal/README.md)
234-
235-
236233
#### [customer_portal.benefit_grants](docs/sdks/polarbenefitgrants/README.md)
237234

238235
* [list](docs/sdks/polarbenefitgrants/README.md#list) - List Benefit Grants
@@ -244,6 +241,10 @@ def webhook():
244241
* [list](docs/sdks/polarcustomermeters/README.md#list) - List Meters
245242
* [get](docs/sdks/polarcustomermeters/README.md#get) - Get Customer Meter
246243

244+
#### [customer_portal.customer_session](docs/sdks/customersessionsdk/README.md)
245+
246+
* [introspect](docs/sdks/customersessionsdk/README.md#introspect) - Introspect Customer Session
247+
247248
#### [customer_portal.customers](docs/sdks/polarcustomers/README.md)
248249

249250
* [get](docs/sdks/polarcustomers/README.md#get) - Get Customer
@@ -279,6 +280,14 @@ def webhook():
279280

280281
* [get](docs/sdks/polarorganizations/README.md#get) - Get Organization
281282

283+
#### [customer_portal.seats](docs/sdks/seats/README.md)
284+
285+
* [list_seats](docs/sdks/seats/README.md#list_seats) - List Seats
286+
* [assign_seat](docs/sdks/seats/README.md#assign_seat) - Assign Seat
287+
* [revoke_seat](docs/sdks/seats/README.md#revoke_seat) - Revoke Seat
288+
* [resend_invitation](docs/sdks/seats/README.md#resend_invitation) - Resend Invitation
289+
* [list_claimed_subscriptions](docs/sdks/seats/README.md#list_claimed_subscriptions) - List Claimed Subscriptions
290+
282291
#### [customer_portal.subscriptions](docs/sdks/polarsubscriptions/README.md)
283292

284293
* [list](docs/sdks/polarsubscriptions/README.md#list) - List Subscriptions
@@ -359,6 +368,13 @@ def webhook():
359368
* [introspect](docs/sdks/oauth2/README.md#introspect) - Introspect Token
360369
* [userinfo](docs/sdks/oauth2/README.md#userinfo) - Get User Info
361370

371+
#### [oauth2.clients](docs/sdks/clients/README.md)
372+
373+
* [create](docs/sdks/clients/README.md#create) - Create Client
374+
* [get](docs/sdks/clients/README.md#get) - Get Client
375+
* [update](docs/sdks/clients/README.md#update) - Update Client
376+
* [delete](docs/sdks/clients/README.md#delete) - Delete Client
377+
362378
### [orders](docs/sdks/orders/README.md)
363379

364380
* [list](docs/sdks/orders/README.md#list) - List Orders
@@ -379,7 +395,6 @@ def webhook():
379395
* [list](docs/sdks/payments/README.md#list) - List Payments
380396
* [get](docs/sdks/payments/README.md#get) - Get Payment
381397

382-
383398
### [products](docs/sdks/products/README.md)
384399

385400
* [list](docs/sdks/products/README.md#list) - List Products
@@ -524,25 +539,25 @@ with Polar(
524539

525540

526541
**Inherit from [`PolarError`](./src/polar_sdk/models/polarerror.py)**:
527-
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 77 of 132 methods.*
528-
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 132 methods.*
529-
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 132 methods.*
530-
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 132 methods.*
531-
* [`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 132 methods.*
532-
* [`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 132 methods.*
533-
* [`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 132 methods.*
534-
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 132 methods.*
535-
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 132 methods.*
536-
* [`InvoiceAlreadyExists`](./src/polar_sdk/models/invoicealreadyexists.py): Order already has an invoice. Status code `409`. Applicable to 2 of 132 methods.*
537-
* [`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 132 methods.*
538-
* [`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 132 methods.*
539-
* [`RefundAmountTooHigh`](./src/polar_sdk/models/refundamounttoohigh.py): Refund amount exceeds remaining order balance. Status code `400`. Applicable to 1 of 132 methods.*
540-
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 132 methods.*
541-
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 132 methods.*
542-
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 132 methods.*
543-
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 132 methods.*
544-
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 132 methods.*
545-
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 132 methods.*
542+
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 77 of 142 methods.*
543+
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 142 methods.*
544+
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 142 methods.*
545+
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 142 methods.*
546+
* [`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 142 methods.*
547+
* [`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 142 methods.*
548+
* [`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 142 methods.*
549+
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 142 methods.*
550+
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 142 methods.*
551+
* [`InvoiceAlreadyExists`](./src/polar_sdk/models/invoicealreadyexists.py): Order already has an invoice. Status code `409`. Applicable to 2 of 142 methods.*
552+
* [`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 142 methods.*
553+
* [`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 142 methods.*
554+
* [`RefundAmountTooHigh`](./src/polar_sdk/models/refundamounttoohigh.py): Refund amount exceeds remaining order balance. Status code `400`. Applicable to 1 of 142 methods.*
555+
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 142 methods.*
556+
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 142 methods.*
557+
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 142 methods.*
558+
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 142 methods.*
559+
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 142 methods.*
560+
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 142 methods.*
546561
* [`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.
547562

548563
</details>

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,4 +923,14 @@ Based on:
923923
### Generated
924924
- [python v0.25.0] .
925925
### Releases
926-
- [PyPI v0.25.0] https://pypi.org/project/polar-sdk/0.25.0 - .
926+
- [PyPI v0.25.0] https://pypi.org/project/polar-sdk/0.25.0 - .
927+
928+
## 2025-10-16 00:13:34
929+
### Changes
930+
Based on:
931+
- OpenAPI Doc
932+
- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy
933+
### Generated
934+
- [python v0.26.0] .
935+
### Releases
936+
- [PyPI v0.26.0] https://pypi.org/project/polar-sdk/0.26.0 - .

0 commit comments

Comments
 (0)