Skip to content

Commit 3f1889f

Browse files
committed
## Python SDK Changes Detected:
* `polar.checkouts.client_update()`: `response.products.[]` **Changed** **Breaking** ⚠️ * `polar.products.list()`: * `request.visibility` **Added** * `response.items.[]` **Changed** **Breaking** ⚠️ * `polar._endpointorder_created_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointorder_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointorder_paid_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointcheckout_created_post()`: * `request.data.products.[]` **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.customer_portal.orders.update()`: `response.product` **Changed** **Breaking** ⚠️ * `polar.customer_portal.orders.get()`: `response.product` **Changed** **Breaking** ⚠️ * `polar.checkouts.client_get()`: `response.products.[]` **Changed** **Breaking** ⚠️ * `polar.customer_portal.orders.list()`: `response.items.[].product` **Changed** **Breaking** ⚠️ * `polar.customer_portal.seats.list_claimed_subscriptions()`: `response.[].product` **Changed** **Breaking** ⚠️ * `polar.checkout-links.update()`: `response.products.[]` **Changed** **Breaking** ⚠️ * `polar._endpointorder_refunded_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_created_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_active_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_canceled_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_uncanceled_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_revoked_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointsubscription_past_due_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointproduct_created_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointproduct_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar._endpointorganization_updated_post()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar.checkout-links.get()`: `response.products.[]` **Changed** **Breaking** ⚠️ * `polar.checkout-links.create()`: `response.products.[]` **Changed** **Breaking** ⚠️ * `polar.checkout-links.list()`: `response.items.[].products.[]` **Changed** **Breaking** ⚠️ * `polar.checkouts.client_confirm()`: `response.products.[]` **Changed** **Breaking** ⚠️ * `polar._endpointcheckout_updated_post()`: * `request.data.products.[]` **Changed** **Breaking** ⚠️ * `polar.checkouts.create()`: * `request.prices.{}.[]` **Changed** **Breaking** ⚠️ * `response.products.[]` **Changed** **Breaking** ⚠️ * `polar.checkouts.get()`: `response.products.[]` **Changed** **Breaking** ⚠️ * `polar.checkouts.update()`: `response.products.[]` **Changed** **Breaking** ⚠️ * `polar.checkouts.list()`: `response.items.[].products.[]` **Changed** **Breaking** ⚠️ * `polar.products.update_benefits()`: `response` **Changed** **Breaking** ⚠️ * `polar.products.update()`: * `request.product_update` **Changed** **Breaking** ⚠️ * `response` **Changed** **Breaking** ⚠️ * `polar.subscriptions.list()`: `response.items.[]` **Changed** **Breaking** ⚠️ * `polar.subscriptions.create()`: `response` **Changed** **Breaking** ⚠️ * `polar.subscriptions.get()`: `response` **Changed** **Breaking** ⚠️ * `polar.subscriptions.revoke()`: `response` **Changed** **Breaking** ⚠️ * `polar.subscriptions.update()`: `response` **Changed** **Breaking** ⚠️ * `polar.products.get()`: `response` **Changed** **Breaking** ⚠️ * `polar.products.create()`: * `request` **Changed** **Breaking** ⚠️ * `response` **Changed** **Breaking** ⚠️ * `polar._endpointcustomer_created_post()`: * `request.data.type` **Added** * `polar.customers.get_state_external()`: `response` **Changed** * `polar.benefit-grants.list()`: `response.items.[]` **Changed** * `polar.benefits.grants()`: `response.items.[]` **Changed** * `polar.organizations.update()`: * `request.organization_update` **Changed** * `response` **Changed** * `polar.organizations.get()`: `response` **Changed** * `polar.orders.list()`: `response.items.[]` **Changed** * `polar.orders.get()`: `response` **Changed** * `polar.orders.update()`: `response` **Changed** * `polar.organizations.create()`: * `request` **Changed** * `response` **Changed** * `polar.organizations.list()`: `response.items.[]` **Changed** * `polar._endpointbenefit_grant_revoked_post()`: * `request.data.[benefit_grant_license_keys_webhook]` **Changed** * `polar._endpointbenefit_grant_cycled_post()`: * `request.data.[benefit_grant_license_keys_webhook]` **Changed** * `polar._endpointbenefit_grant_updated_post()`: * `request.data` **Changed** * `polar.customer-sessions.create()`: `response.customer.type` **Added** * `polar._endpointbenefit_grant_created_post()`: * `request.data.[benefit_grant_license_keys_webhook]` **Changed** * `polar.license_keys.list()`: `response.items.[].customer.type` **Added** * `polar.license_keys.get()`: `response.customer.type` **Added** * `polar.license_keys.update()`: `response.customer.type` **Added** * `polar.license_keys.get_activation()`: `response.license_key.customer.type` **Added** * `polar.license_keys.validate()`: `response.customer.type` **Added** * `polar.license_keys.activate()`: `response.license_key.customer.type` **Added** * `polar._endpointcustomer_seat_revoked_post()`: * `request.data.member` **Added** * `polar._endpointcustomer_seat_claimed_post()`: * `request.data.member` **Added** * `polar._endpointcustomer_seat_assigned_post()`: * `request.data.member` **Added** * `polar._endpointcustomer_state_changed_post()`: * `request.data` **Changed** * `polar.discounts.list()`: `response.items.[].[discount_fixed_repeat_duration].products.[].visibility` **Added** * `polar.discounts.create()`: `response.[discount_fixed_once_forever_duration].products.[].visibility` **Added** * `polar.discounts.get()`: `response.[discount_fixed_once_forever_duration].products.[].visibility` **Added** * `polar.discounts.update()`: `response.[discount_percentage_once_forever_duration].products.[].visibility` **Added** * `polar.customers.list()`: `response.items.[].type` **Added** * `polar.customers.create()`: * `request.type` **Added** * `response.type` **Added** * `polar.customers.get()`: `response.type` **Added** * `polar.customers.update()`: * `request.customer_update.type` **Added** * `response.type` **Added** * `polar.customers.get_external()`: `response.type` **Added** * `polar.customers.update_external()`: `response.type` **Added** * `polar.customers.get_state()`: `response` **Changed** * `polar.webhooks.list_webhook_deliveries()`: `request.event_type` **Changed** * `polar.customer_portal.benefit-grants.list()`: * `request.query` **Added** * `response.items.[]` **Changed** * `polar.customer_portal.benefit-grants.get()`: `response` **Changed** * `polar.customer_portal.benefit-grants.update()`: `response` **Changed** * `polar.customer_portal.customers.get()`: `response.type` **Added** * `polar.customer_portal.customers.update()`: `response.type` **Added** * `polar.customer_portal.seats.list_seats()`: `response.seats.[].member` **Added** * `polar.customer_portal.seats.assign_seat()`: * `request` **Changed** * `response.member` **Added** * `polar.customer_portal.seats.revoke_seat()`: `response.member` **Added** * `polar.customer_portal.seats.resend_invitation()`: `response.member` **Added** * `polar._endpointcustomer_deleted_post()`: * `request.data.type` **Added** * `polar.customer_portal.customer-session.get_authenticated_user()`: `response.member_id` **Added** * `polar.customer_portal.license_keys.list()`: `response.items.[].customer.type` **Added** * `polar.customer_portal.license_keys.get()`: `response.customer.type` **Added** * `polar.customer_portal.license_keys.validate()`: `response.customer.type` **Added** * `polar.customer_portal.license_keys.activate()`: `response.license_key.customer.type` **Added** * `polar._endpointcustomer_updated_post()`: * `request.data.type` **Added** * `polar.customer_portal.members.remove_member()`: **Added** * `polar.customer_portal.members.update_member()`: **Added** * `polar.customer_portal.members.add_member()`: **Added** * `polar.customer_portal.members.list_members()`: **Added** * `polar._endpointmember_deleted_post()`: **Added** * `polar._endpointmember_updated_post()`: **Added** * `polar._endpointmember_created_post()`: **Added** * `polar.customer-seats.list_seats()`: `response.seats.[].member` **Added** * `polar.customer-seats.assign_seat()`: * `request` **Changed** * `response.member` **Added** * `polar.customer-seats.revoke_seat()`: `response.member` **Added** * `polar.customer-seats.resend_invitation()`: `response.member` **Added** * `polar.customer-seats.claim_seat()`: `response.seat.member` **Added** * `polar._endpointcheckout_expired_post()`: **Added** * `polar.member-sessions.create()`: `response.customer.type` **Added** * `polar.events.list()`: `response.[list_resource_event_].items.[]` **Changed** * `polar.events.get()`: `response` **Changed** * `polar.events.ingest()`: * `request.events.[]` **Changed** * `polar.meters.quantities()`: `request.timezone` **Added** * `polar.customer_meters.list()`: `response.items.[].customer.type` **Added** * `polar.customer_meters.get()`: `response.customer.type` **Added**
1 parent f6a3759 commit 3f1889f

218 files changed

Lines changed: 3373 additions & 689 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: 438 additions & 304 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ generation:
2828
generateNewTests: false
2929
skipResponseBodyAssertions: false
3030
persistentEdits: {}
31+
versioningStrategy: automatic
3132
python:
32-
version: 0.28.4
33+
version: 0.28.5
3334
additionalDependencies:
3435
dev:
3536
pydantic-ai-slim: ^0.1.0
@@ -55,6 +56,7 @@ python:
5556
flattenGlobalSecurity: true
5657
flattenRequests: false
5758
flatteningOrder: parameters-first
59+
forwardCompatibleEnumsByDefault: false
5860
imports:
5961
option: openapi
6062
paths:

.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:ac1d60b4cc6260c4a5b529dd39b3e032ed58a3a2d3ea378bdd4e4fa72b131aa0
6-
sourceBlobDigest: sha256:096ba43e442c92fd4061be10bd3518deb9bcbeadf31f8fa9c4a0b573964612b4
5+
sourceRevisionDigest: sha256:756562c25fdcb364bd996927ac356c3fc30a97c316a4b06214a98e5351e550af
6+
sourceBlobDigest: sha256:7f7aee8720d904e5592b7d40cbf9356c487c9044c78262b3cd5fb8bcbfd30eb6
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1768932754
9+
- speakeasy-sdk-regen-1770078059
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:ac1d60b4cc6260c4a5b529dd39b3e032ed58a3a2d3ea378bdd4e4fa72b131aa0
16-
sourceBlobDigest: sha256:096ba43e442c92fd4061be10bd3518deb9bcbeadf31f8fa9c4a0b573964612b4
15+
sourceRevisionDigest: sha256:756562c25fdcb364bd996927ac356c3fc30a97c316a4b06214a98e5351e550af
16+
sourceBlobDigest: sha256:7f7aee8720d904e5592b7d40cbf9356c487c9044c78262b3cd5fb8bcbfd30eb6
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:6e5cc55e4e6ae0fee0a867f69aa42cda7100e4804535659ad9cdbf6730b9a8ac
18+
codeSamplesRevisionDigest: sha256:a8a5a1c01a865f6b72224f3ad66c82935dbbdcca31ecda58478dc858880d13da
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ def webhook():
267267
* [activate](docs/sdks/polarlicensekeys/README.md#activate) - Activate License Key
268268
* [deactivate](docs/sdks/polarlicensekeys/README.md#deactivate) - Deactivate License Key
269269

270+
#### [customer_portal.members](docs/sdks/polarmembers/README.md)
271+
272+
* [list_members](docs/sdks/polarmembers/README.md#list_members) - List Members
273+
* [add_member](docs/sdks/polarmembers/README.md#add_member) - Add Member
274+
* [update_member](docs/sdks/polarmembers/README.md#update_member) - Update Member
275+
* [remove_member](docs/sdks/polarmembers/README.md#remove_member) - Remove Member
276+
270277
#### [customer_portal.orders](docs/sdks/polarorders/README.md)
271278

272279
* [list](docs/sdks/polarorders/README.md#list) - List Orders
@@ -584,24 +591,24 @@ with Polar(
584591

585592

586593
**Inherit from [`PolarError`](./src/polar_sdk/models/polarerror.py)**:
587-
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 82 of 166 methods.*
588-
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 166 methods.*
589-
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 166 methods.*
590-
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 166 methods.*
591-
* [`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 166 methods.*
592-
* [`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 166 methods.*
593-
* [`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 166 methods.*
594-
* [`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 166 methods.*
595-
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 166 methods.*
596-
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 166 methods.*
597-
* [`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 166 methods.*
598-
* [`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 166 methods.*
599-
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 166 methods.*
600-
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 166 methods.*
601-
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 166 methods.*
602-
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 166 methods.*
603-
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 166 methods.*
604-
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 166 methods.*
594+
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 82 of 170 methods.*
595+
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 170 methods.*
596+
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 170 methods.*
597+
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 170 methods.*
598+
* [`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 170 methods.*
599+
* [`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 170 methods.*
600+
* [`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 170 methods.*
601+
* [`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 170 methods.*
602+
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 170 methods.*
603+
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 170 methods.*
604+
* [`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 170 methods.*
605+
* [`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 170 methods.*
606+
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 170 methods.*
607+
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 170 methods.*
608+
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 170 methods.*
609+
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 170 methods.*
610+
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 170 methods.*
611+
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 170 methods.*
605612
* [`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.
606613

607614
</details>

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,4 +1023,14 @@ Based on:
10231023
### Generated
10241024
- [python v0.28.4] .
10251025
### Releases
1026-
- [PyPI v0.28.4] https://pypi.org/project/polar-sdk/0.28.4 - .
1026+
- [PyPI v0.28.4] https://pypi.org/project/polar-sdk/0.28.4 - .
1027+
1028+
## 2026-02-07 00:19:09
1029+
### Changes
1030+
Based on:
1031+
- OpenAPI Doc
1032+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
1033+
### Generated
1034+
- [python v0.28.5] .
1035+
### Releases
1036+
- [PyPI v0.28.5] https://pypi.org/project/polar-sdk/0.28.5 - .

0 commit comments

Comments
 (0)